1
0
Fork 0

Reset pause timer to 0

This commit is contained in:
jordan4ibanez 2021-04-22 20:12:02 -04:00
parent 991bba0a1d
commit e1812b2cdb
1 changed files with 5 additions and 0 deletions

View File

@ -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)