mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
fix only hostile mobs using smooth turning
This commit is contained in:
parent
4a086db4c5
commit
c500dc98f9
1 changed files with 1 additions and 1 deletions
|
@ -3722,7 +3722,7 @@ local mob_step = function(self, dtime)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- smooth rotation by ThomasMonroe314
|
-- smooth rotation by ThomasMonroe314
|
||||||
if self._turn_to and (not self.type == "monster" and self.state == "attack") then
|
if self._turn_to then
|
||||||
set_yaw(self, self._turn_to, .1)
|
set_yaw(self, self._turn_to, .1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue