diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 11:39:20 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-09 11:39:20 +0200 |
commit | 8d12c5259ff12e25f74194db19731ecc10280e47 (patch) | |
tree | f4eddb72e6761910585e3938265e8a02050e25a3 /src/main/java | |
parent | 859784e93bb8265a8c6a1313ae2fa13c86849780 (diff) | |
download | skyhanni-8d12c5259ff12e25f74194db19731ecc10280e47.tar.gz skyhanni-8d12c5259ff12e25f74194db19731ecc10280e47.tar.bz2 skyhanni-8d12c5259ff12e25f74194db19731ecc10280e47.zip |
fixed error messages with runes.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 1 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt index ea9171b8e..18c0aabcd 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt @@ -108,6 +108,7 @@ object EstimatedItemValue { if (internalName.startsWith("MAP-")) return listOf() // Hides the rune item if (internalName.contains("_RUNE;")) return listOf() + if (internalName.contains("UNIQUE_RUNE")) return listOf() if (NEUItems.getItemStackOrNull(internalName) == null) { diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt index 557048c73..4509d512e 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt @@ -189,6 +189,9 @@ object NEUItems { fun getItemStack(internalName: NEUInternalName, definite: Boolean = false): ItemStack = getItemStackOrNull(internalName) ?: run { + + if (getPrice(internalName) == -1.0) return@run fallbackItem + if (definite) { Utils.showOutdatedRepoNotification() } |