From d8fecd07b337346055a8e5e2b9396d0d4e6cf8d5 Mon Sep 17 00:00:00 2001 From: StevenRS11 Date: Thu, 22 May 2014 01:48:21 -0400 Subject: [PATCH] render tweaks --- .../mod_pocketDimClient/RenderDimDoor.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/StevenDimDoors/mod_pocketDimClient/RenderDimDoor.java b/src/main/java/StevenDimDoors/mod_pocketDimClient/RenderDimDoor.java index 195a7dac..cbd3e21b 100644 --- a/src/main/java/StevenDimDoors/mod_pocketDimClient/RenderDimDoor.java +++ b/src/main/java/StevenDimDoors/mod_pocketDimClient/RenderDimDoor.java @@ -287,26 +287,25 @@ public class RenderDimDoor extends TileEntitySpecialRenderer x= ActiveRenderInfo.objectX; y = ActiveRenderInfo.objectY; z = ActiveRenderInfo.objectZ; - - - GL11.glRotatef(180.0F - 90*rotation, 0.0F, 1.0F, 0.0F); //GL11.glRotatef((float)(-90 * rotation), 0.0F, 0.0F, 1.0F); + GL11.glTranslatef(0.007F, .25F, 0F); + switch (rotation) { case 0: - GL11.glTranslatef(-0.5F, .24F, -0.03F); + GL11.glTranslatef(-0.5F, 0, -0.03F); break; case 1: - GL11.glTranslatef(-.5F, .24F, .97F); + GL11.glTranslatef(-.5F, 0F, .97F); break; case 2: - GL11.glTranslatef(.5F, .24F, .97F); + GL11.glTranslatef(.5F, 0F, .97F); break; case 3: - GL11.glTranslatef(0.5F, .24F, -0.03F); + GL11.glTranslatef(0.5F, 0F, -0.03F); } GL11.glDisable(GL_LIGHTING);