Fix entity items rendering on the ground.

This commit is contained in:
LexManos 2012-11-09 16:21:23 -08:00
parent c8753aa104
commit ba6c4dd7df

View file

@ -59,7 +59,7 @@
- {
+ 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.random.setSeed(187L); //Fixes Vanilla bug where layers would not render aligns properly.
var16 = var10.getItem().getIconFromDamageForRenderPass(var10.getItemDamage(), var15);
@ -77,7 +77,7 @@
- {
- this.loadTexture("/gui/items.png");
- }
+ var10.getItem().getTextureFile();
+ this.loadTexture(var10.getItem().getTextureFile());
if (this.field_77024_a)
{