Fixed CCE with first person gloves

This commit is contained in:
Kino 2019-01-31 20:35:54 -05:00
parent 3b4ace6470
commit 26b3a17e58

View file

@ -67,6 +67,8 @@ public class AetherItemRenderer extends ItemRenderer {
renderPlayer.renderFirstPersonArm(playerIn); renderPlayer.renderFirstPersonArm(playerIn);
if (gloves.getItem() instanceof ItemAccessory)
{
this.mc.getTextureManager().bindTexture(((ItemAccessory) gloves.getItem()).texture); this.mc.getTextureManager().bindTexture(((ItemAccessory) gloves.getItem()).texture);
int colour = gloves.getItem().getColorFromItemStack(gloves, 0); int colour = gloves.getItem().getColorFromItemStack(gloves, 0);
@ -87,6 +89,7 @@ public class AetherItemRenderer extends ItemRenderer {
GL11.glDisable(GL11.GL_BLEND); GL11.glDisable(GL11.GL_BLEND);
GL11.glColor3f(1.0F, 1.0F, 1.0F); GL11.glColor3f(1.0F, 1.0F, 1.0F);
} }
}
@Override @Override
public void renderItemInFirstPerson(float partialTicks) public void renderItemInFirstPerson(float partialTicks)