aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-18 14:56:31 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-18 14:56:31 +0100
commitb2b7f8bbba07817152e95eed46147797723faccf (patch)
tree858f4340bf882579517764259847369041abcb41 /src/main/java
parent9cef0c8525acd66458e44b96e06d088ee6b84448 (diff)
downloadskyhanni-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.kt8
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