From 0c438361e5573caeac601520a971ab7e8569f8a2 Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Fri, 20 Dec 2013 16:27:01 -0800 Subject: [PATCH] Code clean up --- common/buildcraft/transport/render/PipeItemRenderer.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/buildcraft/transport/render/PipeItemRenderer.java b/common/buildcraft/transport/render/PipeItemRenderer.java index 7d8f39e3..28b58bd2 100644 --- a/common/buildcraft/transport/render/PipeItemRenderer.java +++ b/common/buildcraft/transport/render/PipeItemRenderer.java @@ -2,13 +2,11 @@ package buildcraft.transport.render; import buildcraft.BuildCraftTransport; import buildcraft.core.CoreConstants; -import buildcraft.transport.ItemPipe; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.texture.TextureMap; -import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.Icon; import net.minecraftforge.client.IItemRenderer; @@ -22,7 +20,7 @@ public class PipeItemRenderer implements IItemRenderer { Tessellator tessellator = Tessellator.instance; Block block = BuildCraftTransport.genericPipeBlock; - Icon icon = ((ItemPipe) Item.itemsList[item.itemID]).getIconFromDamage(0); + Icon icon = item.getItem().getIconFromDamage(0); if (icon == null) icon = ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture(TextureMap.locationBlocksTexture)).getAtlasSprite("missingno");