Fix ender inventory not synced after cloning, fix #329
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user