From 528a29540144d88412f70ca2530c77a64edcd515 Mon Sep 17 00:00:00 2001 From: iChun Date: Fri, 5 Oct 2012 03:57:52 +0800 Subject: [PATCH] Fix not passing right render pass to Item class. --- patches/minecraft/net/minecraft/src/ItemRenderer.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/src/ItemRenderer.java.patch b/patches/minecraft/net/minecraft/src/ItemRenderer.java.patch index 849681a31..b2a06cd11 100644 --- a/patches/minecraft/net/minecraft/src/ItemRenderer.java.patch +++ b/patches/minecraft/net/minecraft/src/ItemRenderer.java.patch @@ -95,7 +95,7 @@ - this.renderItem(var3, var17, 1); + for (int x = 1; x < var17.getItem().getRenderPasses(var17.getItemDamage()); x++) + { -+ int var25 = Item.itemsList[var17.itemID].getColorFromDamage(var17.getItemDamage(), 1); ++ int var25 = Item.itemsList[var17.itemID].getColorFromDamage(var17.getItemDamage(), x); + var13 = (float)(var25 >> 16 & 255) / 255.0F; + var14 = (float)(var25 >> 8 & 255) / 255.0F; + var15 = (float)(var25 & 255) / 255.0F;