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:
parent
dd30012d80
commit
a7bdf23832
|
|
@ -2619,10 +2619,18 @@ class PlayState extends MusicBeatSubState
|
||||||
{
|
{
|
||||||
disableKeys = true;
|
disableKeys = true;
|
||||||
persistentUpdate = false;
|
persistentUpdate = false;
|
||||||
FlxG.switchState(() -> new ChartEditorState(
|
if (isChartingMode)
|
||||||
{
|
{
|
||||||
targetSongId: currentSong.id,
|
FlxG.sound.music?.pause();
|
||||||
}));
|
this.close();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
FlxG.switchState(() -> new ChartEditorState(
|
||||||
|
{
|
||||||
|
targetSongId: currentSong.id,
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue