From 52b008ef304e14e8141df1c71aea9d959b68f300 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 4 Jul 2023 16:40:49 +0200 Subject: Fixed Dance Room Helper getting activated when fighting against Lagoon Leeches --- src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt index 11eceb704..6931cbd3b 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt @@ -58,6 +58,7 @@ object DanceRoomHelper { @SubscribeEvent fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) { if (!isEnabled()) return + if (!inRoom) return config.position.renderStrings( display, config.extraSpace, @@ -83,7 +84,7 @@ object DanceRoomHelper { @SubscribeEvent fun onSound(event: at.hannibal2.skyhanni.events.PlaySoundEvent) { - if (!isEnabled() && !inRoom) return + if (!isEnabled() || !inRoom) return if (event.soundName == "random.burp" && event.volume == 0.8f) { index = 0 found = false -- cgit