Fix not passing right render pass to Item class.
This commit is contained in:
parent
b82a462f64
commit
528a295401
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@
|
||||||
- this.renderItem(var3, var17, 1);
|
- this.renderItem(var3, var17, 1);
|
||||||
+ for (int x = 1; x < var17.getItem().getRenderPasses(var17.getItemDamage()); x++)
|
+ for (int x = 1; x < var17.getItem().getRenderPasses(var17.getItemDamage()); x++)
|
||||||
+ {
|
+ {
|
||||||
+ int var25 = Item.itemsList[var17.itemID].getColorFromDamage(var17.getItemDamage(), 1);
|
+ int var25 = Item.itemsList[var17.itemID].getColorFromDamage(var17.getItemDamage(), x);
|
||||||
+ var13 = (float)(var25 >> 16 & 255) / 255.0F;
|
+ var13 = (float)(var25 >> 16 & 255) / 255.0F;
|
||||||
+ var14 = (float)(var25 >> 8 & 255) / 255.0F;
|
+ var14 = (float)(var25 >> 8 & 255) / 255.0F;
|
||||||
+ var15 = (float)(var25 & 255) / 255.0F;
|
+ var15 = (float)(var25 & 255) / 255.0F;
|
||||||
|
|
Loading…
Reference in a new issue