Fix bug with rendering one too many passes for ItemEntities Closes #450

This commit is contained in:
LexManos 2013-03-13 11:48:39 -07:00
parent c471a9a557
commit 3b40687f55

View file

@ -68,7 +68,7 @@
this.loadTexture("/gui/items.png");
- for (int k = 0; k <= 1; ++k)
+ for (int k = 0; k <= itemstack.getItem().getRenderPasses(itemstack.getItemDamage()); ++k)
+ for (int k = 0; k < itemstack.getItem().getRenderPasses(itemstack.getItemDamage()); ++k)
{
this.random.setSeed(187L);
- Icon icon = itemstack.getItem().getIconFromDamageForRenderPass(itemstack.getItemDamage(), k);