mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-12 19:47:31 +01:00
fix mobs shaking a lot
This commit is contained in:
parent
c500dc98f9
commit
090c5b086a
@ -365,7 +365,7 @@ local set_yaw = function(self, yaw, delay, dtime)
|
|||||||
ddtime = dtime
|
ddtime = dtime
|
||||||
end
|
end
|
||||||
|
|
||||||
if math.abs(target_shortest_path) > 120*ddtime then
|
if math.abs(target_shortest_path) > 200*ddtime then
|
||||||
if target_shortest_path > 0 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()+3*ddtime)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user