mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
make it check not child, since the return statement was removed
This commit is contained in:
parent
a07a5b24bd
commit
e5c1da4380
@ -4394,7 +4394,7 @@ function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake)
|
|||||||
|
|
||||||
-- feed and tame
|
-- feed and tame
|
||||||
self.food = (self.food or 0) + 1
|
self.food = (self.food or 0) + 1
|
||||||
if self.food >= feed_count then
|
if not self.child and self.food >= feed_count then
|
||||||
|
|
||||||
self.food = 0
|
self.food = 0
|
||||||
|
|
||||||
@ -4416,7 +4416,7 @@ function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake)
|
|||||||
-- make sound when fed so many times
|
-- make sound when fed so many times
|
||||||
mob_sound(self, "random", true)
|
mob_sound(self, "random", true)
|
||||||
end
|
end
|
||||||
-- if not in creative then take item
|
-- if not in creative then take item if it was used
|
||||||
if not minetest.is_creative_enabled(clicker:get_player_name()) and consume_food then
|
if not minetest.is_creative_enabled(clicker:get_player_name()) and consume_food then
|
||||||
|
|
||||||
local item = clicker:get_wielded_item()
|
local item = clicker:get_wielded_item()
|
||||||
|
Loading…
Reference in New Issue
Block a user