aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt5
1 files changed, 3 insertions, 2 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 4977ad292..37a44f6ed 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
@@ -113,9 +113,10 @@ class ItemDisplayOverlayFeatures {
if (InventoryUtils.openInventoryName() == "Your Skills") {
if (item.getLore().any { it.contains("Click to view!") }) {
if (CollectionAPI.isCollectionTier0(item.getLore())) return "0"
- if (itemName.removeColor().split(" ").size < 2) return "0" //thanks to watchdogshelper we had to add this hotfix line
+ val split = itemName.split(" ")
+ if (split.size < 2) return "0"
if (!itemName.contains("Dungeon")) {
- val text = itemName.split(" ").last()
+ val text = split.last()
return "" + text.romanToDecimalIfNeeded()
}
}