Make Item.shouldCauseReequipAnimation is bit more precise and copy over the new item for rendering even if the animation is diabled.
This commit is contained in:
parent
030084f2b3
commit
f59b0a2932
|
@ -9,13 +9,16 @@
|
|||
{
|
||||
this.func_178097_a(entityplayersp, f3, f1, f2);
|
||||
}
|
||||
@@ -505,7 +505,8 @@
|
||||
|
||||
if (this.field_78453_b != null && itemstack != null)
|
||||
@@ -507,6 +507,12 @@
|
||||
{
|
||||
- if (!this.field_78453_b.func_179549_c(itemstack))
|
||||
+ if (this.field_78453_b.func_77973_b() != itemstack.func_77973_b() ||
|
||||
+ this.field_78453_b.func_77973_b().shouldCauseReequipAnimation(this.field_78453_b, itemstack, field_78450_g != entityplayersp.field_71071_by.field_70461_c))
|
||||
if (!this.field_78453_b.func_179549_c(itemstack))
|
||||
{
|
||||
+ if (!this.field_78453_b.func_77973_b().shouldCauseReequipAnimation(this.field_78453_b, itemstack, field_78450_g != entityplayersp.field_71071_by.field_70461_c))
|
||||
+ {
|
||||
+ this.field_78453_b = itemstack;
|
||||
+ this.field_78450_g = entityplayersp.field_71071_by.field_70461_c;
|
||||
+ return;
|
||||
+ }
|
||||
flag = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue