Fixed a load of crashes becuase of the new rotation system. Fixed powered tiles
This commit is contained in:
parent
5fe5fce53c
commit
fe11409b4e
14 changed files with 61 additions and 34 deletions
|
@ -34,8 +34,12 @@ public class BlockSupercondensator extends BlockMachineBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
|
||||
int metadata = getTileMeta((World) blockAccess, x, y, z);
|
||||
int metadata = getTileMeta(blockAccess, x, y, z);
|
||||
if (side == metadata && blockAccess.getBlockMetadata(x, y, z) == 1) {
|
||||
return this.iconFront;
|
||||
}
|
||||
return metadata == 0 && side == 3 ? this.iconFront
|
||||
: side == 1 ? this.iconTop :
|
||||
side == 0 ? this.iconBottom : (side == 0 ? this.iconTop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue