From dd16d63e8e58a128de20720d4f8e65aba6c9a109 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sat, 30 Apr 2022 14:35:59 +0100 Subject: [PATCH] revert hover --- api.lua | 12 +----------- api.txt | 2 -- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/api.lua b/api.lua index e99de19..250944a 100644 --- a/api.lua +++ b/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 diff --git a/api.txt b/api.txt index f6dd73d..99547af 100644 --- a/api.txt +++ b/api.txt @@ -237,8 +237,6 @@ functions needed for the mob to work properly which contains the following: 'die_speed' 'die_loop' when set to false stops the animation looping. 'die_rotate' if true mob spins during death animation. - 'hover_start" hover animation when flying/swimming and solid node below - 'hover_end" Using '_loop = false' setting will stop any of the above animations from looping.