diff options
author | alexia <me@alexia.lol> | 2023-12-17 19:08:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-17 19:08:21 +0100 |
commit | 19f44b1c03bfbf8491c237c9527ecc45afc0b138 (patch) | |
tree | cbe969e4f45a775f9a4c25eb4f573bc24f8d1ad8 /src/main/java/at/hannibal2/skyhanni/features | |
parent | e683d251a9060334305e0080fc2fb165c26b21a8 (diff) | |
download | skyhanni-19f44b1c03bfbf8491c237c9527ecc45afc0b138.tar.gz skyhanni-19f44b1c03bfbf8491c237c9527ecc45afc0b138.tar.bz2 skyhanni-19f44b1c03bfbf8491c237c9527ecc45afc0b138.zip |
Fix sixth visitor warning title showing when disabled (#813)
Fixed sixth visitor warning title showing when disabled. #813
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt index f7bed5ef6..b1a8697e5 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt @@ -129,9 +129,11 @@ class GardenVisitorTimer { if (isSixthVisitorEnabled() && millis.isNegative()) { visitorsAmount++ if (!sixthVisitorReady) { - LorenzUtils.sendTitle("§a6th Visitor Ready", 5.seconds) sixthVisitorReady = true - if (isSixthVisitorWarningEnabled()) SoundUtils.playBeepSound() + if (isSixthVisitorWarningEnabled()) { + LorenzUtils.sendTitle("§a6th Visitor Ready", 5.seconds) + SoundUtils.playBeepSound() + } } } } |