From e6b84bd6d361ed890e4b786c56794a2530babe2f Mon Sep 17 00:00:00 2001 From: George Paton Date: Fri, 30 May 2025 09:54:39 +1000 Subject: [PATCH] fix guard on checkNBT --- src/main/java/com/hbm/items/ItemInventory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/hbm/items/ItemInventory.java b/src/main/java/com/hbm/items/ItemInventory.java index 63c5083a7..dd897a66e 100644 --- a/src/main/java/com/hbm/items/ItemInventory.java +++ b/src/main/java/com/hbm/items/ItemInventory.java @@ -38,7 +38,7 @@ public abstract class ItemInventory implements IInventory { } public NBTTagCompound checkNBT(NBTTagCompound nbt) { - if(nbt == null || !nbt.hasNoTags()) { + if(nbt != null && !nbt.hasNoTags()) { Random random = new Random(); try {