fix guard on checkNBT

This commit is contained in:
George Paton 2025-05-30 09:54:39 +10:00
parent 87a1c01fe7
commit e6b84bd6d3

View File

@ -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 {