mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixes step autosave saving multiple times on same step
This commit is contained in:
@@ -32,6 +32,7 @@ if AUTOSAVE_STEPS_SWITCH
|
|||||||
if stepsNum > 0 && !$PokemonGlobal.sliding
|
if stepsNum > 0 && !$PokemonGlobal.sliding
|
||||||
return if $PokemonGlobal.stepcount < 100
|
return if $PokemonGlobal.stepcount < 100
|
||||||
if $PokemonGlobal.stepcount % stepsNum == 0
|
if $PokemonGlobal.stepcount % stepsNum == 0
|
||||||
|
$PokemonGlobal.stepcount+=1
|
||||||
Kernel.tryAutosave()
|
Kernel.tryAutosave()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user