mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Reset pause timer to 0
This commit is contained in:
parent
991bba0a1d
commit
e1812b2cdb
1 changed files with 5 additions and 0 deletions
|
@ -658,6 +658,11 @@ mobs.mob_step = function(self, dtime)
|
|||
if self.hostile and self.attacking then
|
||||
mobs.set_yaw_while_attacking(self)
|
||||
end
|
||||
|
||||
--perfectly reset pause_timer
|
||||
if self.pause_timer < 0 then
|
||||
self.pause_timer = 0
|
||||
end
|
||||
--do normal ai
|
||||
else
|
||||
--jump only (like slimes)
|
||||
|
|
Loading…
Reference in a new issue