From 18f5e25496d2cb74fff24e490a95db29a1fb59e3 Mon Sep 17 00:00:00 2001 From: Ahmed7p39 Date: Fri, 3 Jul 2026 12:10:48 +0300 Subject: [PATCH] avoid increasing volume on focus if it was 0 --- source/funkin/InitState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/funkin/InitState.hx b/source/funkin/InitState.hx index d6dc790ae..5c5dbe8b2 100644 --- a/source/funkin/InitState.hx +++ b/source/funkin/InitState.hx @@ -340,7 +340,7 @@ class InitState extends FlxState #end #if FEATURE_LOST_FOCUS_VOLUME - if (FlxG.sound.muted || FlxG.autoPause) return; + if (FlxG.sound.muted || FlxG.sound.volume == 0 || FlxG.autoPause) return; if (_lastFocusVolume != null) FlxG.sound.volume = _lastFocusVolume; #end }