Fix laser hardness crash

This commit is contained in:
Ben Spiers 2014-09-14 22:44:45 +01:00
parent b29f2adc4d
commit 355209d2e3

View file

@ -675,7 +675,7 @@ public class BlockMachine extends BlockContainer implements ISpecialBounds, IPer
@Override
public float getBlockHardness(World world, int x, int y, int z)
{
if(world.getBlockMetadata(x, y, z) != 13)
if(!(blockType == MachineBlock.MACHINE_BLOCK_1 && world.getBlockMetadata(x, y, z) == 13))
{
return blockHardness;
}