aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorErymanthus[#5074] | (u/)RayDeeUx <51521765+RayDeeUx@users.noreply.github.com>2023-09-27 05:53:31 -0400
committerGitHub <noreply@github.com>2023-09-27 11:53:31 +0200
commit3fa2a2305bbd232371d5e5ce83d9a9a6d8c7cca8 (patch)
tree6ebf69a4d4529d26e80770e99852c97d0d8dbb34 /src/main/java
parent26031387bb9408e20ad9aaf375300a400119e03c (diff)
downloadskyhanni-3fa2a2305bbd232371d5e5ce83d9a9a6d8c7cca8.tar.gz
skyhanni-3fa2a2305bbd232371d5e5ce83d9a9a6d8c7cca8.tar.bz2
skyhanni-3fa2a2305bbd232371d5e5ce83d9a9a6d8c7cca8.zip
hotfix for elias watchdogshelper (#502)
Fixed show skill level as item stack being broken for level 0. #502
Diffstat (limited to 'src/main/java')
-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 90805024a..4977ad292 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
@@ -113,6 +113,7 @@ 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
if (!itemName.contains("Dungeon")) {
val text = itemName.split(" ").last()
return "" + text.romanToDecimalIfNeeded()