diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-08 13:14:56 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-08 13:14:56 +0200 |
commit | b7d05be41fe49081adcff5202a005f5282b4e86e (patch) | |
tree | 771fdf9be6b55eb8441d8ab00fa5d4f70565da0e /src/main/java/at/hannibal2 | |
parent | cdacf7d9f7c85bb7b9ef582a90a4c10b138a18d3 (diff) | |
download | skyhanni-b7d05be41fe49081adcff5202a005f5282b4e86e.tar.gz skyhanni-b7d05be41fe49081adcff5202a005f5282b4e86e.tar.bz2 skyhanni-b7d05be41fe49081adcff5202a005f5282b4e86e.zip |
Fixed "trying to parse 0 to roman number"
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/BestiaryData.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |