aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-09-07 18:52:51 +0200
committerGitHub <noreply@github.com>2024-09-07 18:52:51 +0200
commit3ea40ab88cbe2d32007f89d920a6231a86ea8502 (patch)
tree2e25e79e49de1e130900bab325859f2fc03a5322
parent1ccbd9cf3c443c35b6c51d171b5b20388f9337b0 (diff)
downloadskyhanni-3ea40ab88cbe2d32007f89d920a6231a86ea8502.tar.gz
skyhanni-3ea40ab88cbe2d32007f89d920a6231a86ea8502.tar.bz2
skyhanni-3ea40ab88cbe2d32007f89d920a6231a86ea8502.zip
Fix: grab item name none (#2471)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
index 1a75b4cbc..774638c5d 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/ItemUtils.kt
@@ -370,7 +370,7 @@ object ItemUtils {
getAttributeFromShard()?.let {
return it.getAttributeName()
}
- return getInternalName().itemName
+ return getInternalNameOrNull()?.itemName ?: "<null>"
}
fun ItemStack.getAttributeFromShard(): Pair<String, Int>? {