Skip to content

Commit

Permalink
Fix chart reset when charting and pressing chart key
Browse files Browse the repository at this point in the history
  • Loading branch information
gamerbross authored and EliteMasterEric committed Jun 27, 2024
1 parent dd30012 commit a7bdf23
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions source/funkin/play/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a7bdf23

Please sign in to comment.