mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-26 13:09:22 +01:00
Fixed player interface being broken
This commit is contained in:
parent
bb9dd8c65f
commit
64b62b4f80
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue