From 4991c89b1bc46d7f34e2a12ed328086e4ae3d2e7 Mon Sep 17 00:00:00 2001 From: FluxCapacitor2 <31071265+FluxCapacitor2@users.noreply.github.com> Date: Sun, 14 Jan 2024 20:41:20 -0500 Subject: [PATCH] Force two-decimal precision on terracotta respawn timers --- .../skytilsmod/features/impl/dungeons/DungeonFeatures.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonFeatures.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonFeatures.kt index ccf81e97c..0149a70d8 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonFeatures.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonFeatures.kt @@ -32,7 +32,6 @@ import gg.skytils.skytilsmod.features.impl.handlers.MayorInfo import gg.skytils.skytilsmod.listeners.DungeonListener import gg.skytils.skytilsmod.mixins.transformers.accessors.AccessorEnumDyeColor import gg.skytils.skytilsmod.utils.* -import gg.skytils.skytilsmod.utils.NumberUtil.roundToPrecision import gg.skytils.skytilsmod.utils.Utils.equalsOneOf import gg.skytils.skytilsmod.utils.graphics.ScreenRenderer import gg.skytils.skytilsmod.utils.graphics.SmartFontRenderer @@ -613,7 +612,7 @@ object DungeonFeatures { val diff = it.value - System.currentTimeMillis() RenderUtil.drawLabel( it.key.middleVec(), - "${(diff / 1000.0).roundToPrecision(2)}s", + "${"%.2f".format(diff / 1000.0)}s", Color.WHITE, event.partialTicks, stack