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) {
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue