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) {
if (direction == ForgeDirection.UNKNOWN)
return standardIconIndex;
else {
int metadata = container.getBlockMetadata();
if (metadata == direction.ordinal())
return solidIconIndex;
else
if (container != null && container.getBlockMetadata() == direction.ordinal())
return standardIconIndex;
}
return solidIconIndex;
}
@Override

View file

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