From e23bdca570a417a929d58c796c288b13b3bd9084 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 5 Dec 2020 14:20:58 +0100 Subject: [PATCH] Reset mob velocity when surviving flop --- mods/ENTITIES/mcl_mobs/api.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 01d98d9dfb..9b1971aeff 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -2166,6 +2166,7 @@ local follow_flop = function(self) elseif self.state == "flop" then self.state = "stand" self.object:set_acceleration({x = 0, y = 0, z = 0}) + set_velocity(self, 0) end end end