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 14:12:31 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-09 14:12:31 +0200
commit14e306e77902fdbf3564121f069028dd5f55fef8 (patch)
treefe44e859d2aaef231b46120e3fd3cd6c6547fc28 /src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
parentd19350d4b0b99f6b04680aba9686ddbe1e7df780 (diff)
downloadskyhanni-14e306e77902fdbf3564121f069028dd5f55fef8.tar.gz
skyhanni-14e306e77902fdbf3564121f069028dd5f55fef8.tar.bz2
skyhanni-14e306e77902fdbf3564121f069028dd5f55fef8.zip
Using NEUInternalName in CropAccessory
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
index 0e831e486..6aa6fa28c 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt
@@ -137,7 +137,7 @@ object NEUItems {
.resolveInternalName()
fun getInternalNameOrNull(nbt: NBTTagCompound) =
- ItemResolutionQuery(manager).withItemNBT(nbt).resolveInternalName()
+ ItemResolutionQuery(manager).withItemNBT(nbt).resolveInternalName()?.asInternalName()
fun NEUInternalName.getPriceOrNull(useSellingPrice: Boolean = false): Double? {
val price = getPrice(useSellingPrice)