fix robots changing color when picking leaf blocks

This commit is contained in:
Hea3veN 2015-04-04 10:01:17 -03:00 committed by asiekierka
parent aeea0dddf4
commit d73f176950

View file

@ -80,6 +80,7 @@ public class RenderRobot extends Render implements IItemRenderer {
GL11.glPushMatrix();
GL11.glTranslatef(-0.125F, 0, -0.125F);
doRenderItem(robot.getStackInSlot(0));
GL11.glColor3f(1, 1, 1);
GL11.glPopMatrix();
}
@ -87,6 +88,7 @@ public class RenderRobot extends Render implements IItemRenderer {
GL11.glPushMatrix();
GL11.glTranslatef(+0.125F, 0, -0.125F);
doRenderItem(robot.getStackInSlot(1));
GL11.glColor3f(1, 1, 1);
GL11.glPopMatrix();
}
@ -94,6 +96,7 @@ public class RenderRobot extends Render implements IItemRenderer {
GL11.glPushMatrix();
GL11.glTranslatef(+0.125F, 0, +0.125F);
doRenderItem(robot.getStackInSlot(2));
GL11.glColor3f(1, 1, 1);
GL11.glPopMatrix();
}
@ -101,6 +104,7 @@ public class RenderRobot extends Render implements IItemRenderer {
GL11.glPushMatrix();
GL11.glTranslatef(-0.125F, 0, +0.125F);
doRenderItem(robot.getStackInSlot(3));
GL11.glColor3f(1, 1, 1);
GL11.glPopMatrix();
}