Skip to content

Commit 01fad36

Browse files
fix(catlas): always display 0 if room contains 0 secrets
1 parent d5103dc commit 01fad36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core

src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/catlas/core/CatlasElement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ object CatlasElement : GuiElement(name = "Dungeon Map", x = 0, y = 0) {
163163

164164
val secretText = when (CatlasConfig.foundRoomSecrets) {
165165
0 -> secretCount.toString()
166-
1 -> "${unq.foundSecrets ?: "?"}/${secretCount}"
166+
1 -> if (secretCount == 0) "0" else "${unq.foundSecrets ?: "?"}/${secretCount}"
167167
2 -> unq.foundSecrets?.toString() ?: "?"
168168
else -> error("Invalid foundRoomSecrets value")
169169
}

0 commit comments

Comments
 (0)