aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunderw <73128678+Sunderw3k@users.noreply.github.com>2023-04-24 11:59:51 +0200
committerGitHub <noreply@github.com>2023-04-24 11:59:51 +0200
commit171a7d4c67df8ffd06b8a4249b630d08f21dfc4b (patch)
tree8d76ab0423b4e3e81dad75761c36f8608da9ad05
parent21da14887589d10d1dc75c499c409a309326c496 (diff)
downloadSkyHanni-171a7d4c67df8ffd06b8a4249b630d08f21dfc4b.tar.gz
SkyHanni-171a7d4c67df8ffd06b8a4249b630d08f21dfc4b.tar.bz2
SkyHanni-171a7d4c67df8ffd06b8a4249b630d08f21dfc4b.zip
Fixed level 0 skill names being parsed as levels (#54)
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
index 87e279b2d..90bc84b19 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
@@ -128,6 +128,7 @@ class ItemDisplayOverlayFeatures {
if (SkyHanniMod.feature.inventory.itemNumberAsStackSize.contains(9)) {
if (InventoryUtils.openInventoryName() == "Your Skills") {
if (item.getLore().any { it.contains("Click to view!") }) {
+ if (CollectionAPI.isCollectionTier0(item.getLore())) return "0"
if (!itemName.contains("Dungeon")) {
val text = itemName.split(" ").last()
return "" + text.romanToDecimalIfNeeded()