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