From dea8da66d4aa933b63df691d9db9d4eafc0a5e0e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sat, 18 May 2024 12:22:18 +0200 Subject: Fix: Wrong Visitor Time (#1831) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../hannibal2/skyhanni/features/garden/visitor/GardenVisitorTimer.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/at/hannibal2') 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 efb19579e..229e58e4e 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 @@ -99,6 +99,9 @@ class GardenVisitorTimer { } millis = TimeUtils.getDuration(timeInfo) } + } ?: run { + display = "§cVisitor time info not in tab list" + return } if (lastVisitors != -1 && visitorsAmount - lastVisitors == 1) { -- cgit