Fixed release valve item renderer

This commit is contained in:
DarkGuardsman 2013-12-31 08:03:51 -05:00
parent ee2cb18168
commit cdda06c6ee
2 changed files with 3 additions and 11 deletions

View file

@ -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();
}

View file

@ -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()
{