diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx index 3762e077..cf4a5c20 100644 --- a/source/funkin/game/PlayState.hx +++ b/source/funkin/game/PlayState.hx @@ -1015,13 +1015,22 @@ class PlayState extends MusicBeatState @:dox(hide) override public function onFocus():Void { + if (!paused && FlxG.autoPause) { + inst.resume(); + vocals.resume(); + } scripts.call("onFocus"); + updateDiscordPresence(); super.onFocus(); } @:dox(hide) override public function onFocusLost():Void { + if (!paused && FlxG.autoPause) { + inst.pause(); + vocals.pause(); + } scripts.call("onFocusLost"); updateDiscordPresence(); super.onFocusLost();