Fix inventory items not properly being synced to client. Closes ##5421 & #5417
This commit is contained in:
parent
55691fce4e
commit
36866fed10
2 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@
|
|||
|
||||
ItemStack itemstack1 = this.func_184582_a(entityequipmentslot);
|
||||
if (!ItemStack.func_77989_b(itemstack1, itemstack)) {
|
||||
+ if (!itemstack1.areShareTagsEqual(itemstack))
|
||||
+ if (!itemstack1.equals(itemstack, true))
|
||||
((WorldServer)this.field_70170_p).func_73039_n().func_151247_a(this, new SPacketEntityEquipment(this.func_145782_y(), entityequipmentslot, itemstack1));
|
||||
+ net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.entity.living.LivingEquipmentChangeEvent(this, entityequipmentslot, itemstack, itemstack1));
|
||||
if (!itemstack.func_190926_b()) {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
ItemStack itemstack = ((Slot)this.field_75151_b.get(i)).func_75211_c();
|
||||
ItemStack itemstack1 = this.field_75153_a.get(i);
|
||||
if (!ItemStack.func_77989_b(itemstack1, itemstack)) {
|
||||
+ boolean clientStackChanged = !itemstack1.areShareTagsEqual(itemstack);
|
||||
+ boolean clientStackChanged = !itemstack1.equals(itemstack, true);
|
||||
itemstack1 = itemstack.func_190926_b() ? ItemStack.field_190927_a : itemstack.func_77946_l();
|
||||
this.field_75153_a.set(i, itemstack1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue