From 3cbc5b22a41a86507044e2586e58bf1360aed10f Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 30 Oct 2010 01:32:11 -0700 Subject: [PATCH] Remove getBlock() restriction for commands that ask for a block to search for. --- src/WorldEdit.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WorldEdit.java b/src/WorldEdit.java index 154858cf6..528f6988f 100644 --- a/src/WorldEdit.java +++ b/src/WorldEdit.java @@ -580,7 +580,7 @@ public class WorldEdit { // Remove blocks near } else if (split[0].equalsIgnoreCase("/removenear")) { checkArgs(split, 2, 2, split[0]); - BaseBlock block = getBlock(split[1]); + BaseBlock block = getBlock(split[1], true); int size = Math.max(1, Integer.parseInt(split[2])); int affected = editSession.removeNear( @@ -713,7 +713,7 @@ public class WorldEdit { BaseBlock to; if (split.length == 2) { from = -1; - to = getBlock(split[1]); + to = getBlock(split[1], true); } else { from = getBlock(split[1]).getID(); to = getBlock(split[2]);