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 | fc0863271921299ddb5b7be0ad1402282d074578 (patch) | |
| tree | f33184dcdf3527c8cb6fb27db86582fe1ef2ede4 | |
| parent | 6913b635b9d20cc6736aef64bad9f5d517a2f644 (diff) | |
| download | SkyHanni-fc0863271921299ddb5b7be0ad1402282d074578.tar.gz SkyHanni-fc0863271921299ddb5b7be0ad1402282d074578.tar.bz2 SkyHanni-fc0863271921299ddb5b7be0ad1402282d074578.zip | |
Fixed problems with different bazaar items since hypixel decided to add enchanting lvl 0 to the api
| -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) |
