Fixed centrifuge block icons
This commit is contained in:
parent
5b1ee4cddc
commit
67e6182e44
1 changed files with 15 additions and 7 deletions
|
@ -68,13 +68,21 @@ public class BlockCentrifuge extends BlockMachineBase {
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
if (blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||||
return this.iconFrontOn;
|
if(side == 1){
|
||||||
}
|
return this.iconTopOn;
|
||||||
return metadata == 0 && side == 3 ? this.iconFront
|
} else if(side == 0){
|
||||||
: side == 1 ? this.iconTop :
|
return this.iconBottom;
|
||||||
side == 0 ? this.iconBottom : (side == 0 ? this.iconTop
|
}
|
||||||
: (side == metadata ? this.iconFront : this.blockIcon));
|
return this.iconFrontOn;
|
||||||
|
} else {
|
||||||
|
if(side == 1){
|
||||||
|
return this.iconTop;
|
||||||
|
} else if(side == 0){
|
||||||
|
return this.iconBottom;
|
||||||
|
}
|
||||||
|
return this.iconFront;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue