Make pipes with solid end consistant
This commit is contained in:
parent
cfd89df7b9
commit
54e7e372ec
2 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue