mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 00:49:34 +01:00
fix non-moving entities having no animations
This commit is contained in:
parent
14e7fea6c2
commit
3ae3bc7f4e
1 changed files with 1 additions and 1 deletions
|
@ -3931,7 +3931,7 @@ local mob_step = function(self, dtime)
|
|||
if not self.animation.walk_speed then
|
||||
self.animation.walk_speed = 25
|
||||
end
|
||||
self.object:set_animation_frame_speed((v2/self.run_velocity)*self.animation.walk_speed*self.frame_speed_multiplier)
|
||||
self.object:set_animation_frame_speed((v2/math.max(1,self.run_velocity))*self.animation.walk_speed*self.frame_speed_multiplier)
|
||||
end
|
||||
|
||||
--set_speed
|
||||
|
|
Loading…
Reference in a new issue