diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 00:00:27 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-19 00:00:27 +0100 |
commit | d44509bb2487525c7a0e3e2e29896f295bd6d3de (patch) | |
tree | f33184dcdf3527c8cb6fb27db86582fe1ef2ede4 /src/main | |
parent | 2f4f33647e5a69e2eb9432d48008b56a141d5efd (diff) | |
download | skyhanni-d44509bb2487525c7a0e3e2e29896f295bd6d3de.tar.gz skyhanni-d44509bb2487525c7a0e3e2e29896f295bd6d3de.tar.bz2 skyhanni-d44509bb2487525c7a0e3e2e29896f295bd6d3de.zip |
Fixed problems with different bazaar items since hypixel decided to add enchanting lvl 0 to the api
Diffstat (limited to 'src/main')
-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) |