1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-11-30 16:17:42 +00:00

i have accidentally done this and wiped out my chart many times

This commit is contained in:
nebulazorua 2024-05-08 19:53:47 +08:00
parent a6948c3a38
commit 6fdc090ecc

View file

@ -2549,12 +2549,20 @@ 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)
{ {
disableKeys = true; if (isChartingMode)
persistentUpdate = false; {
FlxG.switchState(() -> new ChartEditorState( if (FlxG.sound.music != null) FlxG.sound.music.pause(); // Don't reset song position!
{ PlayState.instance.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