1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-11-26 06:09:02 +00:00

Fix chart reset when charting and pressing chart key

This commit is contained in:
gamerbross 2024-06-10 16:53:32 +02:00 committed by EliteMasterEric
parent dd30012d80
commit a7bdf23832

View file

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