forked from mtcontrib/mobs_redo
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