make sure you can't heal and tame at the same time

This commit is contained in:
SumianVoice 2022-07-19 14:39:44 +10:00 committed by cora
parent 524da8a6cb
commit 682b61ad4a

@ -4381,7 +4381,7 @@ function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake)
-- increase health -- increase health
if self.health < self.hp_max then if self.health < self.hp_max and not consume_food then
consume_food = true consume_food = true
self.health = min(self.health + 4, self.hp_max) self.health = min(self.health + 4, self.hp_max)