Merge pull request #1296 from Vazkii/patch-3
Fixed items with more than 2 render passes rendering wrong in first person
This commit is contained in:
commit
4600b015d9
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@
|
||||||
+ this.renderItem(entityclientplayermp, itemstack, 0, EQUIPPED_FIRST_PERSON);
|
+ this.renderItem(entityclientplayermp, itemstack, 0, EQUIPPED_FIRST_PERSON);
|
||||||
+ for (int x = 1; x < itemstack.func_77973_b().getRenderPasses(itemstack.func_77960_j()); x++)
|
+ for (int x = 1; x < itemstack.func_77973_b().getRenderPasses(itemstack.func_77960_j()); x++)
|
||||||
+ {
|
+ {
|
||||||
+ int k1 = itemstack.func_77973_b().func_82790_a(itemstack, 1);
|
+ int k1 = itemstack.func_77973_b().func_82790_a(itemstack, x);
|
||||||
+ f10 = (float)(k1 >> 16 & 255) / 255.0F;
|
+ f10 = (float)(k1 >> 16 & 255) / 255.0F;
|
||||||
+ f11 = (float)(k1 >> 8 & 255) / 255.0F;
|
+ f11 = (float)(k1 >> 8 & 255) / 255.0F;
|
||||||
+ f12 = (float)(k1 & 255) / 255.0F;
|
+ f12 = (float)(k1 & 255) / 255.0F;
|
||||||
|
|
Loading…
Reference in a new issue