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

@@ -28,14 +28,12 @@ public class TileCable extends TileBase
public boolean isPowered()
{
// @TODO: return worldObj.isBlockIndirectlyGettingPowered(xCoord, yCoord, zCoord);
return false;
return worldObj.isBlockPowered(pos);
}
public boolean isSensitiveCable()
{
// @TODO: return worldObj.getBlockMetadata(xCoord, yCoord, zCoord) == 1;
return false;
return (Boolean) worldObj.getBlockState(pos).getValue(BlockCable.SENSITIVE);
}
public boolean isEnabled()