mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-03-11 06:07:44 +01:00
Remove unnecessary jumping on breeding (#4900)
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:
parent
d845f802d7
commit
60b01a4daa
1 changed files with 1 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue