diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-26 16:02:50 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-26 16:02:50 +0200 |
commit | f82c30cbd7c191051aae239b9df06c2c2181c8d4 (patch) | |
tree | afc6002d8dd81318ea993cca1a264465869e07f1 /src | |
parent | 8d3de642e7f89635ebe29480fb31e3255216a544 (diff) | |
download | skyhanni-f82c30cbd7c191051aae239b9df06c2c2181c8d4.tar.gz skyhanni-f82c30cbd7c191051aae239b9df06c2c2181c8d4.tar.bz2 skyhanni-f82c30cbd7c191051aae239b9df06c2c2181c8d4.zip |
Fixed speed as item stack display not working with dyed rancher boots
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 7 |
1 files changed, 2 insertions, 5 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 2625b660c..d72877007 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt @@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.events.RenderItemTipEvent import at.hannibal2.skyhanni.utils.InventoryUtils import at.hannibal2.skyhanni.utils.ItemUtils import at.hannibal2.skyhanni.utils.ItemUtils.cleanName +import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.LorenzUtils.between @@ -148,14 +149,10 @@ class ItemDisplayOverlayFeatures { } if (SkyHanniMod.feature.inventory.itemNumberAsStackSize.contains(11)) { - if (itemName.contains("Rancher's Boots")) { + if (item.getInternalName() == "RANCHERS_BOOTS") { for (line in item.getLore()) { val matcher = rangerBootsSpeedCapPattern.matcher(line) if (matcher.matches()) { -// if (!done) { -// done = true -// Thread.dumpStack() -// } return matcher.group(1) } } |