Skip to content

Commit

Permalink
check isEffectsMuted
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorovvl committed Oct 7, 2024
1 parent 126df94 commit b2a54be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/files/content/scripts/0-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b2a54be

Please sign in to comment.