Fix items with color rendering incorrectly.

This commit is contained in:
Lex Manos 2014-02-19 12:34:21 -08:00
parent 08a636c34f
commit b01d87f0c6

View file

@ -60,7 +60,7 @@
}
- for (int j = 0; j <= 1; ++j)
+ for (int j = 0; j <= itemstack.getItem().getRenderPasses(itemstack.getItemDamage()); ++j)
+ for (int j = 0; j < itemstack.getItem().getRenderPasses(itemstack.getItemDamage()); ++j)
{
this.random.setSeed(187L);
- IIcon iicon1 = itemstack.getItem().getIconFromDamageForRenderPass(itemstack.getItemDamage(), j);