added new foci placement check

This commit is contained in:
makeo committed 2015-11-09 21:15:37 +01:00
1 parent 9218809993
commit 9f1d0a3a19
1 file changed
+2 -1
@@ -139,7 +139,8 @@ public class BlockStoneMachine extends Block {
@Override
public boolean canReplace(World world, int x, int y, int z, int side, ItemStack stack) {
if (stack.getItemDamage() == 0 && (y < 1 || world.getBlock(x, y - 1, z) != RegisteredBlocks.blockNodeManipulator)) {
int damage = stack.getItemDamage();
if ((damage == 0 || damage == 3) && (y < 1 || world.getBlock(x, y - 1, z) != RegisteredBlocks.blockNodeManipulator)) {
return false;
}
return super.canReplace(world, x, y, z, side, stack);