Skip to content

Commit

Permalink
NBTCustomTileEntity - fix an error when trying to get the custom comp…
Browse files Browse the repository at this point in the history
…ound
  • Loading branch information
ShaneBeee committed Aug 3, 2022
1 parent f574002 commit b3f973c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public boolean hasTag(String key) {
public void mergeCompound(NBTCompound comp) {
super.mergeCompound(comp);
if (comp.hasTag("custom")) {
NBTCompound custom = comp.getCompound("custom");
NBTCompound custom = comp.getOrCreateCompound("custom");
NBTCompound customNBT = getPersistentDataContainer().getOrCreateCompound(KEY);
customNBT.mergeCompound(custom);
}
Expand Down

0 comments on commit b3f973c

Please sign in to comment.