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)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFrontOn;
|
||||
}
|
||||
return metadata == 0 && side == 3 ? this.iconFront
|
||||
: side == 1 ? this.iconTop :
|
||||
side == 0 ? this.iconBottom : (side == 0 ? this.iconTop
|
||||
: (side == metadata ? this.iconFront : this.blockIcon));
|
||||
if (blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
if(side == 1){
|
||||
return this.iconTopOn;
|
||||
} else if(side == 0){
|
||||
return this.iconBottom;
|
||||
}
|
||||
return this.iconFrontOn;
|
||||
} else {
|
||||
if(side == 1){
|
||||
return this.iconTop;
|
||||
} else if(side == 0){
|
||||
return this.iconBottom;
|
||||
}
|
||||
return this.iconFront;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue