mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-04-15 00:14:48 -04:00
Fix chart reset when charting and pressing chart key
This commit is contained in:
parent
dd30012d80
commit
a7bdf23832
1 changed files with 12 additions and 4 deletions
|
@ -2619,10 +2619,18 @@ class PlayState extends MusicBeatSubState
|
|||
{
|
||||
disableKeys = true;
|
||||
persistentUpdate = false;
|
||||
FlxG.switchState(() -> new ChartEditorState(
|
||||
{
|
||||
targetSongId: currentSong.id,
|
||||
}));
|
||||
if (isChartingMode)
|
||||
{
|
||||
FlxG.sound.music?.pause();
|
||||
this.close();
|
||||
}
|
||||
else
|
||||
{
|
||||
FlxG.switchState(() -> new ChartEditorState(
|
||||
{
|
||||
targetSongId: currentSong.id,
|
||||
}));
|
||||
}
|
||||
}
|
||||
#end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue