mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +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
|
@Override
|
||||||
public void writeSyncableNBT(NBTTagCompound compound, NBTType type){
|
public void writeSyncableNBT(NBTTagCompound compound, NBTType type){
|
||||||
|
super.writeSyncableNBT(compound, type);
|
||||||
|
|
||||||
this.storage.writeToNBT(compound);
|
this.storage.writeToNBT(compound);
|
||||||
if(this.connectedPlayer != null && type != NBTType.SAVE_BLOCK){
|
if(this.connectedPlayer != null && type != NBTType.SAVE_BLOCK){
|
||||||
compound.setUniqueId("Player", this.connectedPlayer);
|
compound.setUniqueId("Player", this.connectedPlayer);
|
||||||
|
@ -108,6 +110,8 @@ public class TileEntityPlayerInterface extends TileEntityInventoryBase implement
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readSyncableNBT(NBTTagCompound compound, NBTType type){
|
public void readSyncableNBT(NBTTagCompound compound, NBTType type){
|
||||||
|
super.readSyncableNBT(compound, type);
|
||||||
|
|
||||||
this.storage.readFromNBT(compound);
|
this.storage.readFromNBT(compound);
|
||||||
if(compound.hasKey("PlayerLeast") && type != NBTType.SAVE_BLOCK){
|
if(compound.hasKey("PlayerLeast") && type != NBTType.SAVE_BLOCK){
|
||||||
this.connectedPlayer = compound.getUniqueId("Player");
|
this.connectedPlayer = compound.getUniqueId("Player");
|
||||||
|
|
Loading…
Reference in a new issue