aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-04 16:40:49 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-04 16:40:49 +0200
commit52b008ef304e14e8141df1c71aea9d959b68f300 (patch)
tree92b8a4f930b4b32911c08e16a6a6bfce8a1c7d4a /src/main/java
parentb6cc019986e249519b7d845ec4aab980cd50ee25 (diff)
downloadskyhanni-52b008ef304e14e8141df1c71aea9d959b68f300.tar.gz
skyhanni-52b008ef304e14e8141df1c71aea9d959b68f300.tar.bz2
skyhanni-52b008ef304e14e8141df1c71aea9d959b68f300.zip
Fixed Dance Room Helper getting activated when fighting against Lagoon Leeches
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/DanceRoomHelper.kt3
1 files changed, 2 insertions, 1 deletions
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