From 54e7e372eca3be15cb1efd150b767978399ec6ce Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Wed, 28 Aug 2013 19:37:56 -0700 Subject: [PATCH] Make pipes with solid end consistant --- common/buildcraft/transport/pipes/PipeFluidsIron.java | 10 +++------- .../buildcraft/transport/pipes/PipeItemsDaizuli.java | 6 ++++-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/common/buildcraft/transport/pipes/PipeFluidsIron.java b/common/buildcraft/transport/pipes/PipeFluidsIron.java index 3698a398..dafe22b5 100644 --- a/common/buildcraft/transport/pipes/PipeFluidsIron.java +++ b/common/buildcraft/transport/pipes/PipeFluidsIron.java @@ -83,14 +83,10 @@ public class PipeFluidsIron extends Pipe { public int getIconIndex(ForgeDirection direction) { if (direction == ForgeDirection.UNKNOWN) return standardIconIndex; - else { - int metadata = container.getBlockMetadata(); + if (container != null && container.getBlockMetadata() == direction.ordinal()) + return standardIconIndex; + return solidIconIndex; - if (metadata == direction.ordinal()) - return solidIconIndex; - else - return standardIconIndex; - } } @Override diff --git a/common/buildcraft/transport/pipes/PipeItemsDaizuli.java b/common/buildcraft/transport/pipes/PipeItemsDaizuli.java index 6cad55c5..7c030ef6 100644 --- a/common/buildcraft/transport/pipes/PipeItemsDaizuli.java +++ b/common/buildcraft/transport/pipes/PipeItemsDaizuli.java @@ -102,9 +102,11 @@ public class PipeItemsDaizuli extends Pipe implements IPipeT @Override public int getIconIndex(ForgeDirection direction) { + if (direction == ForgeDirection.UNKNOWN) + return standardIconIndex + color; if (container != null && container.getBlockMetadata() == direction.ordinal()) - return solidIconIndex; - return standardIconIndex + color; + return standardIconIndex + color; + return solidIconIndex; } @Override