fix not returning to PlayState when leaving the options menu

This commit is contained in:
haven
2024-10-22 17:54:06 -05:00
committed by GitHub
parent 2be2c68c9b
commit 722278fdd2
+2 -1
View File
@@ -153,6 +153,7 @@ class PauseSubState extends MusicBeatSubstate
persistentDraw = false;
openSubState(new KeybindsOptions());
case "Change Options":
TreeMenu.lastState = PlayState;
FlxG.switchState(new OptionsMenu());
case "Exit to charter":
FlxG.switchState(new funkin.editors.charter.Charter(PlayState.SONG.meta.name, PlayState.difficulty, false));
@@ -205,4 +206,4 @@ class PauseSubState extends MusicBeatSubstate
item.alpha = 0.6;
}
}
}
}