Update TileEntityBase.java

This commit is contained in:
Mrbysco 2024-03-13 00:30:34 +01:00
parent bd392b0a5b
commit 26758cb41b

View file

@ -75,7 +75,8 @@ public abstract class TileEntityBase extends BlockEntity {
@Override @Override
public void onDataPacket(Connection net, ClientboundBlockEntityDataPacket pkt) { public void onDataPacket(Connection net, ClientboundBlockEntityDataPacket pkt) {
this.readSyncableNBT(pkt.getTag(), NBTType.SYNC); if (pkt.getTag() != null) //TODO: pkt.getTag() is nullable. Hopping Item Interface will throw in the log when placed because of this
this.readSyncableNBT(pkt.getTag(), NBTType.SYNC);
} }
@Override @Override