diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-29 15:05:12 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-03-29 15:05:12 +0100 |
commit | 92dc859cdf013d0b1f73788705f71eec439bd32d (patch) | |
tree | 435ffc005c032a2a952db80c56b76d9d848e225a /src | |
parent | e4ae028ef44cd8cbff3c4dac609699bae9229c39 (diff) | |
download | skyhanni-92dc859cdf013d0b1f73788705f71eec439bd32d.tar.gz skyhanni-92dc859cdf013d0b1f73788705f71eec439bd32d.tar.bz2 skyhanni-92dc859cdf013d0b1f73788705f71eec439bd32d.zip |
Fixed visitor timer error when not having visitors unlocked yet.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt | 4 |
1 files changed, 4 insertions, 0 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 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 |