From 8d12c5259ff12e25f74194db19731ecc10280e47 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 9 Aug 2023 11:39:20 +0200 Subject: fixed error messages with runes. --- .../at/hannibal2/skyhanni/features/misc/items/EstimatedItemValue.kt | 1 + src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 3 +++ 2 files changed, 4 insertions(+) (limited to 'src/main/java/at/hannibal2') 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() } -- cgit