From 92dc859cdf013d0b1f73788705f71eec439bd32d Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 29 Mar 2024 15:05:12 +0100 Subject: Fixed visitor timer error when not having visitors unlocked yet. --- .../hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt | 4 ++++ 1 file changed, 4 insertions(+) (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 0c8abbec0..21db46b4b 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 @@ -98,6 +98,10 @@ class GardenVisitorTimer { loop@ for (line in TabListData.getTabList()) { timePattern.matchMatcher(line) { val timeInfo = group("info").removeColor() + if (timeInfo == "Not Unlocked!") { + display = "§cVisitors not unlocked!" + return + } if (timeInfo == "Queue Full!") { queueFull = true break@loop -- cgit