From c48769e6f0962b545de3e02890d3079ed2af9508 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 29 Mar 2023 19:52:33 +0200 Subject: Fixed sound level for player category sometimes don't reset to old value when a custom bling sound appears --- src/main/java/at/hannibal2/skyhanni/utils/SoundUtils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') 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 { -- cgit