From 00a507f6e187656934894e9cd22652ccc4c35d44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=9D=E5=A4=8F=E5=90=8C=E5=AD=A6?= <2411829240@qq.com> Date: Fri, 30 Jun 2023 23:50:16 +0800 Subject: [PATCH] Fix a bug when NBTString does not exist. --- src/main/java/forestry/core/inventory/ItemInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/forestry/core/inventory/ItemInventory.java b/src/main/java/forestry/core/inventory/ItemInventory.java index 64ebe0848..39adc4ded 100755 --- a/src/main/java/forestry/core/inventory/ItemInventory.java +++ b/src/main/java/forestry/core/inventory/ItemInventory.java @@ -106,7 +106,7 @@ public abstract class ItemInventory implements IInventory, IFilterSlotDelegate { String baseUID = base.getTagCompound().getString(KEY_UID); String comparisonUID = comparison.getTagCompound().getString(KEY_UID); - return baseUID != null && comparisonUID != null && baseUID.equals(comparisonUID); + return baseUID != null && !baseUID.isEmpty() && baseUID.equals(comparisonUID); } public void readFromNBT(NBTTagCompound nbt) {