aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 20:07:36 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-23 20:07:36 +0100
commit19cbeabc2a7eff5e5c4ccef0cbe6404ad6d1abba (patch)
tree4f7234c3db6039771a71a7636df22dfd089a4e69 /src/main/java/at/hannibal2/skyhanni/utils
parent9e16ac756bbeadad01eb247ae4c220bf1f4001f4 (diff)
downloadskyhanni-19cbeabc2a7eff5e5c4ccef0cbe6404ad6d1abba.tar.gz
skyhanni-19cbeabc2a7eff5e5c4ccef0cbe6404ad6d1abba.tar.bz2
skyhanni-19cbeabc2a7eff5e5c4ccef0cbe6404ad6d1abba.zip
Added the coin price in the visitor items needed list
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
index 8de57f642..568ccbb87 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
@@ -23,7 +23,12 @@ object NEUItems {
if (itemNameCache.containsKey(itemName)) {
return itemNameCache[itemName]!!
}
- val internalName = ItemResolutionQuery.findInternalNameByDisplayName(itemName, false)
+ var internalName = ItemResolutionQuery.findInternalNameByDisplayName(itemName, false)
+ // This fixes a NEU bug with ยง9Hay Bale (cosmetic item)
+ // TODO remove workaround when this is fixed in neu
+ if (internalName == "HAY_BALE") {
+ internalName = "HAY_BLOCK"
+ }
itemNameCache[itemName] = internalName
return internalName
}