aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-27 11:54:01 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-27 11:54:01 +0200
commit55f953504d1af9d8443d1164867400a8cc6c43f2 (patch)
tree8aec32763d1615469931929708ce92dca6f177eb
parent3fa2a2305bbd232371d5e5ce83d9a9a6d8c7cca8 (diff)
downloadskyhanni-55f953504d1af9d8443d1164867400a8cc6c43f2.tar.gz
skyhanni-55f953504d1af9d8443d1164867400a8cc6c43f2.tar.bz2
skyhanni-55f953504d1af9d8443d1164867400a8cc6c43f2.zip
code cleanup
-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()
}
}