aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-08-02 10:58:35 +0200
committerGitHub <noreply@github.com>2024-08-02 10:58:35 +0200
commit1bc224af7c15708799108ed079b4ccd9f4ef852e (patch)
tree4eb13686825ac326874563a427e4626cde5c2a67 /src/main/java
parentdb0871cfa3ac68dc60817a3c757567abf1a499ae (diff)
downloadskyhanni-1bc224af7c15708799108ed079b4ccd9f4ef852e.tar.gz
skyhanni-1bc224af7c15708799108ed079b4ccd9f4ef852e.tar.bz2
skyhanni-1bc224af7c15708799108ed079b4ccd9f4ef852e.zip
Fix: Item Pickup Wisp (#2291)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt
index 004ef673d..825931150 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemPickupLog.kt
@@ -20,6 +20,7 @@ import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.NEUInternalName
import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName
import at.hannibal2.skyhanni.utils.NEUItems.getItemStack
+import at.hannibal2.skyhanni.utils.NEUItems.getItemStackOrNull
import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators
import at.hannibal2.skyhanni.utils.NumberUtil.shortFormat
import at.hannibal2.skyhanni.utils.RenderUtils.renderRenderable
@@ -181,7 +182,7 @@ object ItemPickupLog {
for (item in displayLayout) {
when (item) {
DisplayLayout.ICON -> {
- val itemIcon = entry.neuInternalName?.getItemStack()
+ val itemIcon = entry.neuInternalName?.getItemStackOrNull()
if (itemIcon != null) {
addItemStack(itemIcon)
} else {