Update TileEntityBase.java

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

View file

@ -75,6 +75,7 @@ public abstract class TileEntityBase extends BlockEntity {
@Override
public void onDataPacket(Connection net, ClientboundBlockEntityDataPacket pkt) {
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);
}