Fixes step autosave saving multiple times on same step

This commit is contained in:
infinitefusion
2022-06-07 20:07:31 -04:00
parent dd68c56c79
commit 5c1188e386

View File

@@ -32,6 +32,7 @@ if AUTOSAVE_STEPS_SWITCH
if stepsNum > 0 && !$PokemonGlobal.sliding
return if $PokemonGlobal.stepcount < 100
if $PokemonGlobal.stepcount % stepsNum == 0
$PokemonGlobal.stepcount+=1
Kernel.tryAutosave()
end
end