From cdda06c6eeedeac573da902454aa12288ccec98b Mon Sep 17 00:00:00 2001 From: DarkGuardsman Date: Tue, 31 Dec 2013 08:03:51 -0500 Subject: [PATCH] Fixed release valve item renderer --- .../assemblyline/client/render/ItemPipeRenderer.java | 11 +---------- .../assemblyline/machine/BlockReleaseValve.java | 3 ++- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/builtbroken/assemblyline/client/render/ItemPipeRenderer.java b/src/main/java/com/builtbroken/assemblyline/client/render/ItemPipeRenderer.java index c7211ca5c..dc0c72f8e 100644 --- a/src/main/java/com/builtbroken/assemblyline/client/render/ItemPipeRenderer.java +++ b/src/main/java/com/builtbroken/assemblyline/client/render/ItemPipeRenderer.java @@ -73,7 +73,7 @@ public class ItemPipeRenderer implements IItemRenderer FMLClientHandler.instance().getClient().renderEngine.bindTexture(RenderPipe.getTexture(FluidPartsMaterial.STEEL, 0)); if (!equ) { - GL11.glTranslatef(1F, -0.5F, 1F); + GL11.glTranslatef(0F, -1F, 0F); RenderPipe.render(FluidPartsMaterial.IRON, 0, new boolean[] { false, false, false, false, true, true }); } else @@ -82,15 +82,6 @@ public class ItemPipeRenderer implements IItemRenderer RenderPipe.render(FluidPartsMaterial.IRON, 0, new boolean[] { false, false, true, true, false, false }); } FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation(AssemblyLine.DOMAIN, DarkCore.MODEL_DIRECTORY + "ReleaseValve.png")); - - if (!equ) - { - GL11.glTranslatef(0, -2.0F, 0); - } - else - { - GL11.glTranslatef(0, -2.0F, 0); - } valve.render(); GL11.glPopMatrix(); } diff --git a/src/main/java/com/builtbroken/assemblyline/machine/BlockReleaseValve.java b/src/main/java/com/builtbroken/assemblyline/machine/BlockReleaseValve.java index 7021e52d3..073bf3f2a 100644 --- a/src/main/java/com/builtbroken/assemblyline/machine/BlockReleaseValve.java +++ b/src/main/java/com/builtbroken/assemblyline/machine/BlockReleaseValve.java @@ -12,12 +12,13 @@ import net.minecraft.world.World; import com.builtbroken.assemblyline.ALRecipeLoader; import com.builtbroken.assemblyline.blocks.BlockAssembly; +import com.builtbroken.assemblyline.blocks.BlockHydraulic; import com.builtbroken.common.Pair; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; -public class BlockReleaseValve extends BlockAssembly +public class BlockReleaseValve extends BlockHydraulic { public BlockReleaseValve() {