mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-01-09 06:22:14 -05:00
Fix chart reset when charting and pressing chart key
This commit is contained in:
parent
eb979a8625
commit
9618cd2128
1 changed files with 13 additions and 5 deletions
|
@ -2612,10 +2612,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