aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
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