diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/bazaar/BazaarDataGrabber.kt | 4 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt | 1 |
2 files changed, 3 insertions, 2 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) diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt b/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt index 675d98b97..1907d5f8f 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt @@ -21,7 +21,6 @@ class TabListData { fun getTabList() = cache } - private val playerOrdering = Ordering.from(PlayerComparator()) @SideOnly(Side.CLIENT) |