From 14e306e77902fdbf3564121f069028dd5f55fef8 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 9 Aug 2023 14:12:31 +0200 Subject: Using NEUInternalName in CropAccessory --- src/main/java/at/hannibal2/skyhanni/utils/NEUItems.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') 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) -- cgit