From 682b61ad4a73ebb18b58bd93cfcd4e3c4946b83c Mon Sep 17 00:00:00 2001 From: SumianVoice Date: Tue, 19 Jul 2022 14:39:44 +1000 Subject: [PATCH] make sure you can't heal and tame at the same time --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 3ff508554e..8d84c48f5a 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -4381,7 +4381,7 @@ function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake) -- increase health - if self.health < self.hp_max then + if self.health < self.hp_max and not consume_food then consume_food = true self.health = min(self.health + 4, self.hp_max)