aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 11:39:20 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 11:39:20 +0200
commit8d12c5259ff12e25f74194db19731ecc10280e47 (patch)
treef4eddb72e6761910585e3938265e8a02050e25a3 /src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
parent859784e93bb8265a8c6a1313ae2fa13c86849780 (diff)
downloadskyhanni-8d12c5259ff12e25f74194db19731ecc10280e47.tar.gz
skyhanni-8d12c5259ff12e25f74194db19731ecc10280e47.tar.bz2
skyhanni-8d12c5259ff12e25f74194db19731ecc10280e47.zip
fixed error messages with runes.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt3
1 files changed, 3 insertions, 0 deletions
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()
}