From 19f44b1c03bfbf8491c237c9527ecc45afc0b138 Mon Sep 17 00:00:00 2001 From: alexia Date: Sun, 17 Dec 2023 19:08:21 +0100 Subject: Fix sixth visitor warning title showing when disabled (#813) Fixed sixth visitor warning title showing when disabled. #813 --- .../skyhanni/features/garden/visitor/GardenVisitorTimer.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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() + } } } } -- cgit