aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-29 19:52:33 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-29 19:52:33 +0200
commitc48769e6f0962b545de3e02890d3079ed2af9508 (patch)
treeb5968eb6d2d8987eb16d609f0f6c2d556e72b093 /src/main/java/at/hannibal2/skyhanni/utils
parentec479126e55b4e2552e155f9c00fdb68465c3135 (diff)
downloadskyhanni-c48769e6f0962b545de3e02890d3079ed2af9508.tar.gz
skyhanni-c48769e6f0962b545de3e02890d3079ed2af9508.tar.bz2
skyhanni-c48769e6f0962b545de3e02890d3079ed2af9508.zip
Fixed sound level for player category sometimes don't reset to old value when a custom bling sound appears
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
index 26f06df29..23d3fb603 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt
@@ -23,8 +23,9 @@ object SoundUtils {
}
}
e.printStackTrace()
+ } finally {
+ gameSettings.setSoundLevel(SoundCategory.PLAYERS, oldLevel)
}
- gameSettings.setSoundLevel(SoundCategory.PLAYERS, oldLevel)
}
fun createSound(name: String, pitch: Float): ISound {