forgot vocals aren't included (#1240)

Co-authored-by: Hyper_ <40342021+NotHyper-474@users.noreply.github.com>
This commit is contained in:
Abnormal
2025-06-17 18:49:51 +00:00
committed by GitHub
co-authored by Hyper_
parent 13d8127e75
commit f23eddcf2c
+6 -2
View File
@@ -1041,14 +1041,18 @@ class PauseSubState extends MusicBeatSubState
* Quit the game and return to the chart editor.
* @param state The current PauseSubState.
*/
@:access(funkin.play.PlayState)
static function quitToChartEditor(state:PauseSubState):Void
{
#if FEATURE_MOBILE_ADVERTISEMENTS
AdMobUtil.removeBanner();
#end
if (FlxG.sound.music != null) FlxG.sound.music.pause(); // Don't reset song position!
// This should come first because the sounds list gets cleared!
PlayState.instance?.forEachPausedSound(s -> s.destroy());
state.close();
PlayState.instance.close(); // This only works because PlayState is a substate!
FlxG.sound.music?.pause(); // Don't reset song position!
PlayState.instance?.vocals?.pause();
PlayState.instance?.close(); // This only works because PlayState is a substate!
}
}