mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
make sure you can't heal and tame at the same time
This commit is contained in:
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user