From 711bcbfbd81d1564662a71d0bd46a002858ecf28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Mon, 13 Apr 2015 02:24:43 +0200 Subject: [PATCH] Fixed equipped item rendering in robots, closes #1059. --- .../li/cil/oc/client/renderer/tileentity/RobotRenderer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/li/cil/oc/client/renderer/tileentity/RobotRenderer.scala b/src/main/scala/li/cil/oc/client/renderer/tileentity/RobotRenderer.scala index 86e1df3eb..5fcfacb88 100644 --- a/src/main/scala/li/cil/oc/client/renderer/tileentity/RobotRenderer.scala +++ b/src/main/scala/li/cil/oc/client/renderer/tileentity/RobotRenderer.scala @@ -315,7 +315,7 @@ object RobotRenderer extends TileEntitySpecialRenderer { renderChassis(robot, offset) } - if (!robot.renderingErrored && x * x + y * y + z * z < 24 * 24) { + if (MinecraftForgeClient.getRenderPass == 0 && !robot.renderingErrored && x * x + y * y + z * z < 24 * 24) { val itemRenderer = Minecraft.getMinecraft.getItemRenderer Option(robot.getStackInSlot(0)) match { case Some(stack) =>