From 93352fb3df24203a064bc6f11e03d1bc21e0d6e6 Mon Sep 17 00:00:00 2001 From: Henry Mao Date: Wed, 9 Jan 2013 20:49:17 +0800 Subject: [PATCH] Made belts render as connected when slanted --- .../assemblyline/client/render/RenderConveyorBelt.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/minecraft/assemblyline/client/render/RenderConveyorBelt.java b/src/minecraft/assemblyline/client/render/RenderConveyorBelt.java index e81068297..af731c7ce 100644 --- a/src/minecraft/assemblyline/client/render/RenderConveyorBelt.java +++ b/src/minecraft/assemblyline/client/render/RenderConveyorBelt.java @@ -47,17 +47,22 @@ public class RenderConveyorBelt extends TileEntitySpecialRenderer break; } - if (slantType != null) + if (slantType != null && slantType != SlantType.NONE) { + GL11.glTranslatef(0, -0.4f, 0); + GL11.glScalef(1f, 1.4f, 1f); + if (slantType == SlantType.UP) { if (face == 5 || face == 4) { + GL11.glScalef(1.4f, 1f, 1f); GL11.glTranslatef(0f, 0f, 1f); GL11.glRotatef(-45f, 1f, 0f, 0f); } else if (face == 2 || face == 3) { + GL11.glScalef(1f, 1f, 1.4f); GL11.glTranslatef(0f, 0f, 1f); GL11.glRotatef(-45f, 1f, 0f, 0f); } @@ -66,11 +71,13 @@ public class RenderConveyorBelt extends TileEntitySpecialRenderer { if (face == 5 || face == 4) { + GL11.glScalef(1.4f, 1f, 1f); GL11.glTranslatef(0f, 0f, -1f); GL11.glRotatef(45f, 1f, 0f, 0f); } else if (face == 2 || face == 3) { + GL11.glScalef(1f, 1f, 1.4f); GL11.glTranslatef(0f, 0f, -1f); GL11.glRotatef(45f, 1f, 0f, 0f); }