From 01fad360e5e4d090a8649a922724399eaa362de3 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Fri, 13 Dec 2024 12:19:25 -0500 Subject: [PATCH] fix(catlas): always display 0 if room contains 0 secrets --- .../features/impl/dungeons/catlas/core/CatlasElement.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core/CatlasElement.kt b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core/CatlasElement.kt index 1e97a93cb..96a612813 100644 --- a/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core/CatlasElement.kt +++ b/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core/CatlasElement.kt @@ -163,7 +163,7 @@ object CatlasElement : GuiElement(name = "Dungeon Map", x = 0, y = 0) { val secretText = when (CatlasConfig.foundRoomSecrets) { 0 -> secretCount.toString() - 1 -> "${unq.foundSecrets ?: "?"}/${secretCount}" + 1 -> if (secretCount == 0) "0" else "${unq.foundSecrets ?: "?"}/${secretCount}" 2 -> unq.foundSecrets?.toString() ?: "?" else -> error("Invalid foundRoomSecrets value") }