mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Remove wolf-dog shift click breeding, and implement better logic
This commit is contained in:
parent
41bfaae370
commit
11b5684a90
1 changed files with 9 additions and 10 deletions
|
@ -154,7 +154,7 @@ dog.follow = "mcl_mobitems:beef"
|
||||||
dog.on_rightclick = function(self, clicker)
|
dog.on_rightclick = function(self, clicker)
|
||||||
local item = clicker:get_wielded_item()
|
local item = clicker:get_wielded_item()
|
||||||
|
|
||||||
if self.owner and self.owner == clicker:get_player_name() and clicker:get_player_control().sneak then
|
--owner is broken for this
|
||||||
--attempt to enter breed state
|
--attempt to enter breed state
|
||||||
if mobs.enter_breed_state(self,clicker) then
|
if mobs.enter_breed_state(self,clicker) then
|
||||||
return
|
return
|
||||||
|
@ -165,7 +165,6 @@ dog.on_rightclick = function(self, clicker)
|
||||||
mobs.make_baby_grow_faster(self,clicker)
|
mobs.make_baby_grow_faster(self,clicker)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
if is_food(item:get_name()) then
|
if is_food(item:get_name()) then
|
||||||
-- Feed to increase health
|
-- Feed to increase health
|
||||||
|
|
Loading…
Reference in a new issue