From 3fa2a2305bbd232371d5e5ce83d9a9a6d8c7cca8 Mon Sep 17 00:00:00 2001 From: "Erymanthus[#5074] | (u/)RayDeeUx" <51521765+RayDeeUx@users.noreply.github.com> Date: Wed, 27 Sep 2023 05:53:31 -0400 Subject: hotfix for elias watchdogshelper (#502) Fixed show skill level as item stack being broken for level 0. #502 --- .../hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/at') 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() -- cgit