From d73f176950d2a059b7718217f2cec039ffcc3310 Mon Sep 17 00:00:00 2001 From: Hea3veN Date: Sat, 4 Apr 2015 10:01:17 -0300 Subject: [PATCH] fix robots changing color when picking leaf blocks --- common/buildcraft/robots/render/RenderRobot.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/buildcraft/robots/render/RenderRobot.java b/common/buildcraft/robots/render/RenderRobot.java index 70a7536a..4ddec22d 100644 --- a/common/buildcraft/robots/render/RenderRobot.java +++ b/common/buildcraft/robots/render/RenderRobot.java @@ -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(); }