diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-18 14:56:31 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-18 14:56:31 +0100 |
commit | b2b7f8bbba07817152e95eed46147797723faccf (patch) | |
tree | 858f4340bf882579517764259847369041abcb41 /src/main/java | |
parent | 9cef0c8525acd66458e44b96e06d088ee6b84448 (diff) | |
download | skyhanni-b2b7f8bbba07817152e95eed46147797723faccf.tar.gz skyhanni-b2b7f8bbba07817152e95eed46147797723faccf.tar.bz2 skyhanni-b2b7f8bbba07817152e95eed46147797723faccf.zip |
workaround for visitor error
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt | 8 |
1 files changed, 2 insertions, 6 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 febfd33ee..a488ef6dd 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 @@ -143,12 +143,8 @@ class GardenVisitorTimer { } if (lastMillis == INFINITE) { - ErrorManager.logErrorState("Visitor Timer got problem detected", "lastMillis is infinite") - return - } - if (millis == INFINITE) { - ErrorManager.logErrorState("Visitor Timer got problem detected", "millis is infinite") - return + LorenzUtils.chat("§c[SkyHanni] Found Visitor Timer bug, reset value (lastMillis was infinite).") + lastMillis = 0.seconds } val diff = lastMillis - millis |