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

@ -705,15 +705,16 @@
public void addChatComponentMessage(IChatComponent p_146105_1_)
{
this.playerNetServerHandler.sendPacket(new S02PacketChat(p_146105_1_));
@@ -878,6 +1204,7 @@
@@ -878,6 +1204,8 @@
public void clonePlayer(EntityPlayer p_71049_1_, boolean p_71049_2_)
{
+ this.theInventoryEnderChest = p_71049_1_.theInventoryEnderChest;
+ if (p_71049_1_ instanceof EntityPlayerMP) ((org.bukkit.craftbukkit.entity.CraftLivingEntity) (bukkitEntity = ((EntityPlayerMP) p_71049_1_).bukkitEntity)).updateEntity(this);
super.clonePlayer(p_71049_1_, p_71049_2_);
this.lastExperience = -1;
this.lastHealth = -1.0F;
@@ -1037,6 +1364,114 @@
@@ -1037,6 +1365,114 @@
return this.field_143005_bX;
}