From 5e8c03a938d77855bc40c43be8e6df60f3136c74 Mon Sep 17 00:00:00 2001 From: SeRaid <77941535+SeRaid743@users.noreply.github.com> Date: Sun, 28 Apr 2024 23:00:40 +1200 Subject: removed 0 seconds pb in limbo timer (#1577) --- .../at/hannibal2/skyhanni/features/misc/limbo/LimboTimeTracker.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/limbo/LimboTimeTracker.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/limbo/LimboTimeTracker.kt index 32cfd0133..1e110e573 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/limbo/LimboTimeTracker.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/limbo/LimboTimeTracker.kt @@ -117,7 +117,10 @@ object LimboTimeTracker { userLuck = ((storage?.personalBest ?: 0) * USER_LUCK_MULTIPLIER).round(2) if (onFire) userLuck *= FIRE_MULTIPLIER ChatUtils.chat("§fYou were in Limbo for §e$duration§f! §d§lPERSONAL BEST§r§f!") - ChatUtils.chat("§fYour previous Personal Best was §e$oldPB.") + if (oldPB != 0.seconds) { + ChatUtils.chat("§fYour previous Personal Best was §e$oldPB.") + } + } else ChatUtils.chat("§fYou were in Limbo for §e$duration§f.") if (userLuck > oldLuck) { if (onFire) { -- cgit