fix robots changing color when picking leaf blocks
This commit is contained in:
parent
aeea0dddf4
commit
d73f176950
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue