diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-09-07 18:52:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 18:52:51 +0200 |
commit | 3ea40ab88cbe2d32007f89d920a6231a86ea8502 (patch) | |
tree | 2e25e79e49de1e130900bab325859f2fc03a5322 | |
parent | 1ccbd9cf3c443c35b6c51d171b5b20388f9337b0 (diff) | |
download | skyhanni-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.kt | 2 |
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>? { |