more fixes

- grid / crafting grid differ works
- cable / sensitive cable differ works
- redstoen mode works again
This commit is contained in:
Raoul Van den Berge
2015-12-26 01:07:41 +01:00
parent 36d3303c5f
commit 9b109374fe
15 changed files with 184 additions and 88 deletions

View File

@@ -34,13 +34,13 @@ public class BlockCable extends BlockBase implements ITileEntityProvider
@Override
public IBlockState getStateFromMeta(int meta)
{
return getDefaultState().withProperty(SENSITIVE, meta == 1 ? true : false);
return getDefaultState().withProperty(SENSITIVE, meta == 1);
}
@Override
public int getMetaFromState(IBlockState state)
{
return ((Boolean) state.getValue(SENSITIVE)) ? 0 : 1;
return ((Boolean) state.getValue(SENSITIVE)) ? 1 : 0;
}
@Override