From cbec2db9c857f02c3c96157cc5496ece41c11e95 Mon Sep 17 00:00:00 2001 From: Calclavia Date: Thu, 27 Feb 2014 19:38:39 +0800 Subject: [PATCH] Fixed vertical gutter render --- .../archaic/gutter/BlockGutter.java | 2 +- .../archaic/gutter/RenderGutter.java | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/archaic/src/main/java/resonantinduction/archaic/gutter/BlockGutter.java b/archaic/src/main/java/resonantinduction/archaic/gutter/BlockGutter.java index ce2b902c..a87a9299 100644 --- a/archaic/src/main/java/resonantinduction/archaic/gutter/BlockGutter.java +++ b/archaic/src/main/java/resonantinduction/archaic/gutter/BlockGutter.java @@ -88,7 +88,7 @@ public class BlockGutter extends BlockFluidNetwork if (!world.isRemote && tile instanceof TileGutter) { - ((TileGutter) tile).fill(ForgeDirection.UNKNOWN, new FluidStack(FluidRegistry.WATER, 1), true); + ((TileGutter) tile).fill(ForgeDirection.UNKNOWN, new FluidStack(FluidRegistry.WATER, 10), true); } } diff --git a/archaic/src/main/java/resonantinduction/archaic/gutter/RenderGutter.java b/archaic/src/main/java/resonantinduction/archaic/gutter/RenderGutter.java index c2b51cc4..a9b21be7 100644 --- a/archaic/src/main/java/resonantinduction/archaic/gutter/RenderGutter.java +++ b/archaic/src/main/java/resonantinduction/archaic/gutter/RenderGutter.java @@ -46,7 +46,21 @@ public class RenderGutter extends TileEntitySpecialRenderer implements ISimpleIt } if (!WorldUtility.isEnabledSide(sides, ForgeDirection.DOWN)) + { MODEL.renderOnly("base"); + } + else + { + GL11.glPushMatrix(); + GL11.glRotatef(-90, 0, 0, 1); + MODEL.renderOnly("backCornerL", "frontCornerL"); + GL11.glPopMatrix(); + GL11.glPushMatrix(); + GL11.glRotatef(90, 0, 1, 0); + GL11.glRotatef(-90, 0, 0, 1); + MODEL.renderOnly("backCornerL", "frontCornerL"); + GL11.glPopMatrix(); + } } @Override