aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt
index c2f5fb5a7..609801cd5 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt
@@ -144,7 +144,9 @@ internal class BazaarDataGrabber(private var bazaarMap: MutableMap<String, Bazaa
val builder = StringBuilder()
for (word in rawName.lowercase().split("_")) {
if (word.isInt()) {
- builder.append(word.toInt().toRoman())
+ val number = word.toInt()
+ if (number < 1) continue
+ builder.append(number.toRoman())
} else {
if (word in listOf("of", "the")) {
builder.append(word)