Fix binding the texture for multiple render passes. Thanks mdiyo! Closes #320
This commit is contained in:
parent
de15192bb8
commit
18f77fb10f
1 changed files with 3 additions and 2 deletions
|
@ -90,10 +90,11 @@
|
||||||
- this.loadTexture("/gui/items.png");
|
- this.loadTexture("/gui/items.png");
|
||||||
-
|
-
|
||||||
- for (var15 = 0; var15 <= 1; ++var15)
|
- for (var15 = 0; var15 <= 1; ++var15)
|
||||||
+ this.loadTexture(Item.itemsList[var10.itemID].getTextureFile());
|
- {
|
||||||
+
|
+
|
||||||
+ for (var15 = 0; var15 <= var10.getItem().getRenderPasses(var10.getItemDamage()); ++var15)
|
+ for (var15 = 0; var15 <= var10.getItem().getRenderPasses(var10.getItemDamage()); ++var15)
|
||||||
{
|
+ {
|
||||||
|
+ this.loadTexture(Item.itemsList[var10.itemID].getTextureFile());
|
||||||
this.random.setSeed(187L);
|
this.random.setSeed(187L);
|
||||||
- var16 = var10.getItem().getIconFromDamageForRenderPass(var10.getItemDamage(), var15);
|
- var16 = var10.getItem().getIconFromDamageForRenderPass(var10.getItemDamage(), var15);
|
||||||
+ var16 = var10.getItem().getIconIndex(var10, var15);
|
+ var16 = var10.getItem().getIconIndex(var10, var15);
|
||||||
|
|
Loading…
Reference in a new issue