From b7d05be41fe49081adcff5202a005f5282b4e86e Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Tue, 8 Aug 2023 13:14:56 +0200 Subject: Fixed "trying to parse 0 to roman number" --- src/main/java/at/hannibal2/skyhanni/features/misc/BestiaryData.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/BestiaryData.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/BestiaryData.kt index 104d6b25f..30505ca83 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/BestiaryData.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/BestiaryData.kt @@ -479,7 +479,7 @@ object BestiaryData { } fun String.romanOrInt() = romanToDecimalIfNeeded().let { - if (config.replaceRoman) it.toString() else it.toRoman() + if (config.replaceRoman || it == 0) it.toString() else it.toRoman() } fun Any.getNextLevel(): String { -- cgit