Fix binding the texture for multiple render passes. Thanks mdiyo! Closes #320

This commit is contained in:
Christian 2012-12-18 13:32:48 -05:00
parent de15192bb8
commit 18f77fb10f

View file

@ -90,10 +90,11 @@
- this.loadTexture("/gui/items.png");
-
- for (var15 = 0; var15 <= 1; ++var15)
+ this.loadTexture(Item.itemsList[var10.itemID].getTextureFile());
- {
+
+ for (var15 = 0; var15 <= var10.getItem().getRenderPasses(var10.getItemDamage()); ++var15)
{
+ {
+ this.loadTexture(Item.itemsList[var10.itemID].getTextureFile());
this.random.setSeed(187L);
- var16 = var10.getItem().getIconFromDamageForRenderPass(var10.getItemDamage(), var15);
+ var16 = var10.getItem().getIconIndex(var10, var15);