From b2a54becb67cdd9732b0e0c20bf0f2dbcfb4bb89 Mon Sep 17 00:00:00 2001 From: Vladimir Fedorov Date: Mon, 7 Oct 2024 12:49:02 +0300 Subject: [PATCH] check isEffectsMuted --- client/files/content/scripts/0-common.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/files/content/scripts/0-common.js b/client/files/content/scripts/0-common.js index 6587681..721574b 100644 --- a/client/files/content/scripts/0-common.js +++ b/client/files/content/scripts/0-common.js @@ -305,6 +305,7 @@ function getSoundsCount() function disableEffectSounds() { if(Object.keys(mainSettings.effectSounds).length == 0) { return; } + if(game.def("Sound::cSoundManager").getInstance().isEffectsMuted()) { return; } if(getSoundsCount() < Object.keys(mainSettings.effectSounds).length) { debug("wait some"); setTimeout(disableEffectSounds, 1000);