From d77b571f236550db10d515f022711c31c10992e9 Mon Sep 17 00:00:00 2001 From: covers1624 Date: Thu, 30 Apr 2015 20:25:20 +0930 Subject: [PATCH 1/2] Fixes #1561 The item in the drying rack was being rendered on the incorrect side of the block, rotating to face the correct way then translating it to the correct spot fixes the issue. --- .../modelblock/DryingRackSpecialRender.java | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java b/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java index 23f46f3d..dcefe7f8 100644 --- a/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java +++ b/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java @@ -55,11 +55,27 @@ public class DryingRackSpecialRender extends TileEntitySpecialRenderer if (meta == 2) GL11.glTranslatef(0F, 0F, 0.375F); if (meta == 3) - GL11.glTranslatef(0F, 0F, -0.375F); + { + /** + * Rotate the image as it is flipped, translate to the correct spot. + */ + GL11.glRotatef(180F, 0F, 1F, 0F); + GL11.glTranslatef(0F, 0F, 0.2F); + //GL11.glTranslatef(0F, 0F, -0.375F); + } if (meta == 4) + { GL11.glTranslatef(0F, 0F, 0.2875F); + } if (meta == 5) - GL11.glTranslatef(0F, 0F, -0.5F); + { + /** + * Rotate the image as it is flipped, translate to the correct spot. + */ + GL11.glRotatef(180F, 0F, 1F, 0F); + GL11.glTranslatef(0F, 0F, 0.3F); + //GL11.glTranslatef(0F, 0F, -0.5F); + } } GL11.glScalef(2F, 2F, 2F); if (stack.getItem() instanceof ItemBlock) From dfed1dd9f44505522d464622b204bb45aec4d0f6 Mon Sep 17 00:00:00 2001 From: covers1624 Date: Thu, 30 Apr 2015 21:25:12 +0930 Subject: [PATCH 2/2] Fix Documentation. --- .../armor/modelblock/DryingRackSpecialRender.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java b/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java index dcefe7f8..ee94797b 100644 --- a/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java +++ b/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java @@ -56,9 +56,7 @@ public class DryingRackSpecialRender extends TileEntitySpecialRenderer GL11.glTranslatef(0F, 0F, 0.375F); if (meta == 3) { - /** - * Rotate the image as it is flipped, translate to the correct spot. - */ + // Rotate, Flip. GL11.glRotatef(180F, 0F, 1F, 0F); GL11.glTranslatef(0F, 0F, 0.2F); //GL11.glTranslatef(0F, 0F, -0.375F); @@ -69,9 +67,7 @@ public class DryingRackSpecialRender extends TileEntitySpecialRenderer } if (meta == 5) { - /** - * Rotate the image as it is flipped, translate to the correct spot. - */ + //Rotate, Flip. GL11.glRotatef(180F, 0F, 1F, 0F); GL11.glTranslatef(0F, 0F, 0.3F); //GL11.glTranslatef(0F, 0F, -0.5F);