make sure you can't heal and tame at the same time
parent
524da8a6cb
commit
682b61ad4a
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue