3
0

Fix ender inventory not synced after cloning, fix #329

This commit is contained in:
Sergey Shatunov
2016-02-04 18:21:25 +07:00
parent 3b321e3116
commit d98e2ca8f6
2 changed files with 18 additions and 4 deletions

View File

@ -23,8 +23,12 @@
public abstract class EntityPlayer extends EntityLivingBase implements ICommandSender
{
public static final String PERSISTED_NBT_TAG = "PlayerPersisted";
@@ -102,7 +118,7 @@
private InventoryEnderChest theInventoryEnderChest = new InventoryEnderChest();
@@ -99,10 +115,10 @@
private HashMap<Integer, Boolean> spawnForcedMap = new HashMap<Integer, Boolean>();
public InventoryPlayer inventory = new InventoryPlayer(this);
- private InventoryEnderChest theInventoryEnderChest = new InventoryEnderChest();
+ public InventoryEnderChest theInventoryEnderChest = new InventoryEnderChest();
public Container inventoryContainer;
public Container openContainer;
- protected FoodStats foodStats = new FoodStats();
@ -499,3 +503,12 @@
}
}
@@ -2023,7 +2246,7 @@
this.setScore(p_71049_1_.getScore());
}
- this.theInventoryEnderChest = p_71049_1_.theInventoryEnderChest;
+ // this.theInventoryEnderChest = p_71049_1_.theInventoryEnderChest; // KCauldron - moved up
this.spawnChunkMap = p_71049_1_.spawnChunkMap;
this.spawnForcedMap = p_71049_1_.spawnForcedMap;