aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhoebe <77941535+catgirlseraid@users.noreply.github.com>2024-05-18 12:24:07 +1200
committerGitHub <noreply@github.com>2024-05-18 02:24:07 +0200
commitf7f86c32c9d9731d040b49f7693ece00ea7bdada (patch)
tree4e9f3d341ab7d906f9dda03e850ec0b0c6bb9c31
parent350ec03583de9ca10911b09c1a0a0daae24aff25 (diff)
downloadskyhanni-f7f86c32c9d9731d040b49f7693ece00ea7bdada.tar.gz
skyhanni-f7f86c32c9d9731d040b49f7693ece00ea7bdada.tar.bz2
skyhanni-f7f86c32c9d9731d040b49f7693ece00ea7bdada.zip
Fixed time until next charge being wrong (#1806)
Co-authored-by: SeRaid <77941535+SeRaid743@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/chocolatefactory/ChocolateFactoryStats.kt10
1 files changed, 8 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 5e5be011e..f067146bf 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
@@ -95,8 +95,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 (ChocolateFactoryTimeTowerManager.timeTowerFull()) {
+ "§eFull Tower Charges: §a§lNow\n" +
+ "§eHappens at: §a§lNow"
+ } else {
+ "§eFull Tower Charges: §b${timeTowerFull.timeUntil().format()}\n" +
+ "§eHappens at: §b${timeTowerFull.formattedDate("EEEE, MMM d h:mm a")}"
+ }
+
)
put(ChocolateFactoryStat.TIME_TO_PRESTIGE, "§eTime To Prestige: $prestigeEstimate")
put(