Fix chart reset when charting and pressing chart key

This commit is contained in:
gamerbross 2024-06-10 16:53:32 +02:00
parent eb979a8625
commit 9618cd2128

View file

@ -2612,11 +2612,19 @@ class PlayState extends MusicBeatSubState
{
disableKeys = true;
persistentUpdate = false;
if (isChartingMode)
{
FlxG.sound.music?.pause();
this.close();
}
else
{
FlxG.switchState(() -> new ChartEditorState(
{
targetSongId: currentSong.id,
}));
}
}
#end
#if (debug || FORCE_DEBUG_VERSION)