Revert change because i forgot to do it in a new branch oriignally lol

This commit is contained in:
nebulazorua 2024-05-08 20:30:47 +08:00
parent 2eaea3cdc5
commit 4b500f78e1

View file

@ -2555,20 +2555,12 @@ class PlayState extends MusicBeatSubState
// Redirect to the chart editor playing the current song. // Redirect to the chart editor playing the current song.
if (controls.DEBUG_CHART) if (controls.DEBUG_CHART)
{ {
if (isChartingMode) disableKeys = true;
{ persistentUpdate = false;
if (FlxG.sound.music != null) FlxG.sound.music.pause(); // Don't reset song position! FlxG.switchState(() -> new ChartEditorState(
this.close(); // This only works because PlayState is a substate! {
} targetSongId: currentSong.id,
else }));
{
disableKeys = true;
persistentUpdate = false;
FlxG.switchState(() -> new ChartEditorState(
{
targetSongId: currentSong.id,
}));
}
} }
#end #end