only show breed infotext if mob can breed

This commit is contained in:
tenplus1 2023-10-11 10:41:58 +01:00
parent 457eb1838c
commit e8adf9b244
1 changed files with 2 additions and 2 deletions

View File

@ -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