diff --git a/api.lua b/api.lua index 51f8ab1..14f9e1b 100644 --- a/api.lua +++ b/api.lua @@ -11,7 +11,7 @@ local use_mc2 = minetest.get_modpath("mcl_core") -- Global mobs = { mod = "redo", - version = "20231008", + version = "20231011", translate = S, invis = minetest.global_exists("invisibility") and invisibility or {}, node_snow = minetest.registered_aliases["mapgen_snow"] @@ -4708,7 +4708,7 @@ function mobs:feed_tame(self, clicker, feed_count, breed, tame) -- feed and tame self.food = (self.food or 0) + 1 - self._breed_countdown = feed_count - self.food + self._breed_countdown = breed and (feed_count - self.food) if self.food >= feed_count then