From a16e8f04038e3b13fb6ab6395f1a033836dfc2ed Mon Sep 17 00:00:00 2001 From: epCode <64379263+epCode@users.noreply.github.com> Date: Sun, 9 Oct 2022 17:41:50 -0700 Subject: [PATCH] remove all glitchy shaking --- mods/ENTITIES/mcl_mobs/api.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 6e21c05c8..6eac022a3 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -365,11 +365,13 @@ local set_yaw = function(self, yaw, delay, dtime) ddtime = dtime end - if math.abs(target_shortest_path) > 200*ddtime then + minetest.chat_send_all(math.abs(target_shortest_path)) + + if math.abs(target_shortest_path) > 280*ddtime then if target_shortest_path > 0 then - self.object:set_yaw(self.object:get_yaw()+3*ddtime) + self.object:set_yaw(self.object:get_yaw()+1.5*ddtime) else - self.object:set_yaw(self.object:get_yaw()-3*ddtime) + self.object:set_yaw(self.object:get_yaw()-1.5*ddtime) end end