From 5ec63533e3eab6f5a1f62038f387d49f613216da Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 21 Feb 2023 14:20:46 +0100 Subject: Queue full support --- .../at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt index 6f39c3b63..3794e50d1 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt @@ -49,9 +49,11 @@ class GardenVisitorTimer { "§f/§e" + TimeUtils.formatDuration(millis / factor) } else "" - val visitorLabel = if (visitorsAmount == 1) "visitor" else "visitors" val formatDuration = TimeUtils.formatDuration(millis) - val next = if (queueFull) "§cQueue Full!" else "Next in §e$formatDuration$extraSpeed" + val next = if (queueFull) "§cQueue Full!" else { + "Next in §e$formatDuration$extraSpeed" + } + val visitorLabel = if (visitorsAmount == 1) "visitor" else "visitors" render = "§b$visitorsAmount $visitorLabel §f($next§f)" } -- cgit