Auto remove un needed things in the code

This commit is contained in:
modmuss50 2016-04-03 14:34:39 +01:00
parent 7e7fcf2ad9
commit 510f969c94
105 changed files with 141 additions and 348 deletions

View file

@ -42,13 +42,13 @@ public class BlockSolarPanel extends BaseTileBlock implements ITexturedBlock
@Override
public IBlockState getStateFromMeta(int meta)
{
return getDefaultState().withProperty(ACTIVE, meta == 0 ? false : true);
return getDefaultState().withProperty(ACTIVE, meta != 0);
}
@Override
public int getMetaFromState(IBlockState state)
{
return state.getValue(ACTIVE) == true ? 1 : 0;
return state.getValue(ACTIVE) ? 1 : 0;
}
@Override