From d635e79e3288d3710f1605b3db80b4d325c8329d Mon Sep 17 00:00:00 2001 From: asiekierka Date: Thu, 22 Jan 2015 23:18:48 +0100 Subject: [PATCH] optimize pass 1 workaround, try to fix #2398 --- .../buildcraft/transport/render/PipeRendererWorld.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/transport/render/PipeRendererWorld.java b/common/buildcraft/transport/render/PipeRendererWorld.java index 8d6d7824..dbcb1c6d 100644 --- a/common/buildcraft/transport/render/PipeRendererWorld.java +++ b/common/buildcraft/transport/render/PipeRendererWorld.java @@ -10,8 +10,10 @@ package buildcraft.transport.render; import net.minecraft.block.Block; import net.minecraft.client.renderer.RenderBlocks; +import net.minecraft.client.renderer.Tessellator; import net.minecraft.init.Blocks; import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.IIcon; import net.minecraft.world.IBlockAccess; import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler; @@ -102,8 +104,11 @@ public class PipeRendererWorld implements ISimpleBlockRenderingHandler { fakeBlock.setColor(0xFFFFFF); } else if (renderPass == 1) { // Fix a bug in Minecraft 1.7.2-1.7.10 - // TODO: Remove in 1.8 - renderblocks.renderFaceXNeg(fakeBlock, x, y, z, PipeIconProvider.TYPE.Transparent.getIcon()); + IIcon i = PipeIconProvider.TYPE.Transparent.getIcon(); + Tessellator.instance.addVertexWithUV(x, y, z, 0, 0); + Tessellator.instance.addVertexWithUV(x, y, z, 0, 0); + Tessellator.instance.addVertexWithUV(x, y, z, 0, 0); + Tessellator.instance.addVertexWithUV(x, y, z, 0, 0); } renderblocks.setRenderBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F);