From 63140bcf7f4722a4dc1865df0da69d1b3fc11fed Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Tue, 5 Aug 2014 21:10:28 +0100 Subject: [PATCH] Fixed items with more than 2 render passes rendering weird in first person --- .../net/minecraft/client/renderer/ItemRenderer.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/client/renderer/ItemRenderer.java.patch b/patches/minecraft/net/minecraft/client/renderer/ItemRenderer.java.patch index 4b60e1943..3d876c13b 100644 --- a/patches/minecraft/net/minecraft/client/renderer/ItemRenderer.java.patch +++ b/patches/minecraft/net/minecraft/client/renderer/ItemRenderer.java.patch @@ -106,7 +106,7 @@ + this.renderItem(entityclientplayermp, itemstack, 0, EQUIPPED_FIRST_PERSON); + for (int x = 1; x < itemstack.func_77973_b().getRenderPasses(itemstack.func_77960_j()); x++) + { -+ int k1 = itemstack.func_77973_b().func_82790_a(itemstack, 1); ++ int k1 = itemstack.func_77973_b().func_82790_a(itemstack, x); + f10 = (float)(k1 >> 16 & 255) / 255.0F; + f11 = (float)(k1 >> 8 & 255) / 255.0F; + f12 = (float)(k1 & 255) / 255.0F;