From 0287e831d9499571d99fb182e2f4202ee0b5a1f3 Mon Sep 17 00:00:00 2001 From: SeRaid <77941535+SeRaid743@users.noreply.github.com> Date: Thu, 16 May 2024 15:49:42 +1200 Subject: [PATCH] stopped time until all charges being 1970 :3 --- .../chocolatefactory/ChocolateFactoryStats.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt index 5e5be011e65d..e59dbd8659e9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt @@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.utils.ClipboardUtils import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators import at.hannibal2.skyhanni.utils.RenderUtils.renderRenderables +import at.hannibal2.skyhanni.utils.SimpleTimeMark import at.hannibal2.skyhanni.utils.StringUtils.removeColor import at.hannibal2.skyhanni.utils.TimeUtils.format import at.hannibal2.skyhanni.utils.renderables.Renderable @@ -95,8 +96,14 @@ object ChocolateFactoryStats { put(ChocolateFactoryStat.TIME_TOWER, "§eTime Tower: §6$timeTowerInfo") put( ChocolateFactoryStat.TIME_TOWER_FULL, - "§eFull Tower Charges: §b${timeTowerFull.timeUntil().format()}\n" + - "§bHappens at: ${timeTowerFull.formattedDate("EEEE, MMM d h:mm a")}" + if (timeTowerFull == SimpleTimeMark(0)) { + "§eFull Tower Charges: §aNow" + + "§bHappens at: §aNow" + } else { + "§eFull Tower Charges: §b${timeTowerFull.timeUntil().format()}\n" + + "§bHappens at: ${timeTowerFull.formattedDate("EEEE, MMM d h:mm a")}" + } + ) put(ChocolateFactoryStat.TIME_TO_PRESTIGE, "§eTime To Prestige: $prestigeEstimate") put(