From d2214afee78a7fa1b0874824430f88d62f6a203d Mon Sep 17 00:00:00 2001 From: dmillerw Date: Mon, 21 Apr 2014 07:21:05 -0700 Subject: [PATCH] Fixed gates rendering incorrectly in GUIs --- .../transport/render/GateItemRenderer.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/common/buildcraft/transport/render/GateItemRenderer.java b/common/buildcraft/transport/render/GateItemRenderer.java index 831bc441..ebb7be4e 100644 --- a/common/buildcraft/transport/render/GateItemRenderer.java +++ b/common/buildcraft/transport/render/GateItemRenderer.java @@ -10,18 +10,17 @@ package buildcraft.transport.render; import buildcraft.api.gates.IGateExpansion; import buildcraft.transport.gates.ItemGate; -import java.util.Random; -import net.minecraft.item.ItemStack; +import net.minecraft.client.renderer.ItemRenderer; +import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.renderer.entity.RenderManager; -import net.minecraft.client.renderer.Tessellator; -import net.minecraft.util.IIcon; -import net.minecraft.client.renderer.ItemRenderer; -import net.minecraftforge.client.IItemRenderer; -import net.minecraftforge.client.IItemRenderer.ItemRenderType; -import net.minecraftforge.client.IItemRenderer.ItemRendererHelper; -import org.lwjgl.opengl.GL11; import net.minecraft.entity.item.EntityItem; +import net.minecraft.item.ItemStack; +import net.minecraft.util.IIcon; +import net.minecraftforge.client.IItemRenderer; +import org.lwjgl.opengl.GL11; + +import java.util.Random; public class GateItemRenderer implements IItemRenderer { @@ -152,6 +151,7 @@ public class GateItemRenderer implements IItemRenderer { private void render(ItemRenderType type, ItemStack stack) { GL11.glPushMatrix(); GL11.glDisable(GL11.GL_LIGHTING); + GL11.glEnable(GL11.GL_ALPHA_TEST); // In certain cases gets disabled by this point IIcon icon = ItemGate.getLogic(stack).getIconItem(); renderItem.renderIcon(0, 0, icon, 16, 16);