mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-07-01 16:00:23 +02:00
revert hover
This commit is contained in:
12
api.lua
12
api.lua
@ -2393,17 +2393,7 @@ function mob_class:do_states(dtime)
|
||||
and self.animation
|
||||
and self.animation.fly_start
|
||||
and self.animation.fly_end then
|
||||
|
||||
local def = minetest.registered_nodes[self.standing_on] or {}
|
||||
|
||||
if def.walkable
|
||||
and self.animation
|
||||
and self.animation.hover_start
|
||||
and self.animation.hover_end then
|
||||
self:set_animation("hover")
|
||||
else
|
||||
self:set_animation("fly")
|
||||
end
|
||||
self:set_animation("fly")
|
||||
else
|
||||
self:set_animation("walk")
|
||||
end
|
||||
|
Reference in New Issue
Block a user