Immediately recover after a fall

This commit is contained in:
Pyrex 2022-12-17 16:26:30 -08:00
parent 99744a31d6
commit 8a88131d1e

View File

@ -609,8 +609,9 @@ function player:_vanish_if_requested()
if self.vanishing then if self.vanishing then
self.vanish_frame+=1 self.vanish_frame+=1
if (self.fall_frame>10 or self.vanish_frame>20) then if (self.fall_frame>0 or self.vanish_frame>20) then
level:restart() level:restart()
self.vanish_frame=20
self.vanishing=false self.vanishing=false
end end
else else