NBT consistency for crates opened from inventory

This commit is contained in:
abel1502 2025-06-03 23:57:04 +03:00
parent c19e867bfd
commit c9110aaa33
No known key found for this signature in database
GPG Key ID: 076926596A536338

View File

@ -154,6 +154,10 @@ public class ItemBlockStorageCrate extends ItemBlockBase implements IGUIProvider
nbt.setTag("slot" + i, slot); nbt.setTag("slot" + i, slot);
} }
if (nbt.hasNoTags()) {
nbt = null;
}
target.setTagCompound(nbt); target.setTagCompound(nbt);
} }