From 64b62b4f804b43123f50f58cffd480ec6ea2a8cb Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 21 Oct 2016 00:03:58 +0200 Subject: [PATCH] Fixed player interface being broken --- .../actuallyadditions/mod/tile/TileEntityPlayerInterface.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityPlayerInterface.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityPlayerInterface.java index 2130a4883..e17fcf1a7 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityPlayerInterface.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityPlayerInterface.java @@ -99,6 +99,8 @@ public class TileEntityPlayerInterface extends TileEntityInventoryBase implement @Override public void writeSyncableNBT(NBTTagCompound compound, NBTType type){ + super.writeSyncableNBT(compound, type); + this.storage.writeToNBT(compound); if(this.connectedPlayer != null && type != NBTType.SAVE_BLOCK){ compound.setUniqueId("Player", this.connectedPlayer); @@ -108,6 +110,8 @@ public class TileEntityPlayerInterface extends TileEntityInventoryBase implement @Override public void readSyncableNBT(NBTTagCompound compound, NBTType type){ + super.readSyncableNBT(compound, type); + this.storage.readFromNBT(compound); if(compound.hasKey("PlayerLeast") && type != NBTType.SAVE_BLOCK){ this.connectedPlayer = compound.getUniqueId("Player");