diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 6ea40b40c..45245622e 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -443,8 +443,14 @@ local set_yaw = function(self, yaw, delay, dtime) if math.abs(target_shortest_path) > 280*ddtime then if target_shortest_path > 0 then self.object:set_yaw(self.object:get_yaw()+3.6*ddtime) + if self.acc then + self.acc=vector.rotate_around_axis(self.acc,vector.new(0,1,0), 3.6*ddtime) + end else self.object:set_yaw(self.object:get_yaw()-3.6*ddtime) + if self.acc then + self.acc=vector.rotate_around_axis(self.acc,vector.new(0,1,0), -3.6*ddtime) + end end end