From af3567ad9f65f8495b889428c04da12f85d35aec Mon Sep 17 00:00:00 2001 From: Sunderw <73128678+Sunderw3k@users.noreply.github.com> Date: Mon, 24 Apr 2023 11:59:51 +0200 Subject: Fixed level 0 skill names being parsed as levels (#54) --- .../hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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() -- cgit