This commit is contained in:
⍚~Nex
2025-04-14 03:38:14 +02:00
parent ab61c89dab
commit 2fbc2bd0a1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1541,8 +1541,8 @@ class Charter extends UIState {
if (shouldBuild && instance != null) instance.buildChart();
var cur = FlxG.state;
while(true) {
if (cur.subState != null) cur = cur.subState;
else return cur.openSubState(new SaveSubstate(Json.stringify(data, replacer, space), options, saveOptions));
if (instance != null || cur.subState == null) return cur.openSubState(new SaveSubstate(Json.stringify(data, replacer, space), options, saveOptions));
else cur = cur.subState;
}
}
+1 -1
View File
@@ -826,7 +826,7 @@ class PlayState extends MusicBeatState
SaveWarning.showWarning = Charter.undos.unsaved;
SaveWarning.selectionClass = CharterSelection;
SaveWarning.warningFunc = saveWarn;
SaveWarning.saveFunc = () -> Charter.saveEverything(false);
SaveWarning.saveFunc = () -> Charter.saveEverything(false);
}
}