Make pipes with solid end consistant

This commit is contained in:
CovertJaguar 2013-08-28 19:37:56 -07:00
parent cfd89df7b9
commit 54e7e372ec
2 changed files with 7 additions and 9 deletions

View file

@ -83,14 +83,10 @@ public class PipeFluidsIron extends Pipe<PipeTransportFluids> {
public int getIconIndex(ForgeDirection direction) { public int getIconIndex(ForgeDirection direction) {
if (direction == ForgeDirection.UNKNOWN) if (direction == ForgeDirection.UNKNOWN)
return standardIconIndex; return standardIconIndex;
else { if (container != null && container.getBlockMetadata() == direction.ordinal())
int metadata = container.getBlockMetadata(); return standardIconIndex;
return solidIconIndex;
if (metadata == direction.ordinal())
return solidIconIndex;
else
return standardIconIndex;
}
} }
@Override @Override

View file

@ -102,9 +102,11 @@ public class PipeItemsDaizuli extends Pipe<PipeTransportItems> implements IPipeT
@Override @Override
public int getIconIndex(ForgeDirection direction) { public int getIconIndex(ForgeDirection direction) {
if (direction == ForgeDirection.UNKNOWN)
return standardIconIndex + color;
if (container != null && container.getBlockMetadata() == direction.ordinal()) if (container != null && container.getBlockMetadata() == direction.ordinal())
return solidIconIndex; return standardIconIndex + color;
return standardIconIndex + color; return solidIconIndex;
} }
@Override @Override