Fix mob breeding

This commit is contained in:
cora 2022-09-09 13:09:20 +02:00
parent 9f971ab1a6
commit 09b4cc6f3a
1 changed files with 7 additions and 2 deletions

View File

@ -20,6 +20,11 @@ MOB_CAP.passive = 10
MOB_CAP.ambient = 15
MOB_CAP.water = 15
function mcl_mobs:feed_tame(...) return mobs:feed_tame(...) end
--function mcl_mobs:spawn_child(...) return end
function mcl_mobs:capture(...) return mobs:capture(...) end
function mcl_mobs:protect(...) return mobs:protect(...) end
-- Localize
local S = minetest.get_translator("mcl_mobs")
@ -563,7 +568,7 @@ function mcl_mobs:register_egg(mob, desc, background, addegg, no_creative)
end
-- feeding, taming and breeding (thanks blert2112)
function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake)
--[[]function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake)
if not self.follow then
return false
end
@ -632,7 +637,7 @@ function mcl_mobs:feed_tame(self, clicker, feed_count, breed, tame, notake)
end
return false
end
--]]
-- Spawn a child
function mcl_mobs:spawn_child(pos, mob_type)
local child = minetest.add_entity(pos, mob_type)