From e5c1da4380575e531472c8447f8e33dd9043d876 Mon Sep 17 00:00:00 2001 From: SumianVoice Date: Mon, 18 Jul 2022 23:41:27 +1000 Subject: [PATCH] make it check not child, since the return statement was removed --- mods/ENTITIES/mcl_mobs/api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 053b5d951..ae8fd25a3 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -4394,7 +4394,7 @@ function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake) -- feed and tame 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 @@ -4416,7 +4416,7 @@ function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake) -- make sound when fed so many times mob_sound(self, "random", true) 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 local item = clicker:get_wielded_item()