Remove unnecessary jumping on breeding ()

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4900
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
This commit is contained in:
kno10 2025-02-09 16:42:03 +01:00 committed by the-real-herowl
parent d845f802d7
commit 60b01a4daa

View file

@ -177,16 +177,7 @@ function mob_class:check_breeding()
})
-- custom function when child grows up
if self.on_grown then
self.on_grown(self)
else
-- jump when fully grown so as not to fall into ground
self.object:set_velocity({
x = 0,
y = self.jump_height,
z = 0
})
end
if self.on_grown then self:on_grown() end
self.animation = nil
local anim = self._current_animation