3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-08 04:20:06 +01:00

Remove getBlock() restriction for commands that ask for a block to search for.

Dieser Commit ist enthalten in:
sk89q 2010-10-30 01:32:11 -07:00
Ursprung 749649a80b
Commit 3cbc5b22a4

Datei anzeigen

@ -580,7 +580,7 @@ public class WorldEdit {
// Remove blocks near // Remove blocks near
} else if (split[0].equalsIgnoreCase("/removenear")) { } else if (split[0].equalsIgnoreCase("/removenear")) {
checkArgs(split, 2, 2, split[0]); 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 size = Math.max(1, Integer.parseInt(split[2]));
int affected = editSession.removeNear( int affected = editSession.removeNear(
@ -713,7 +713,7 @@ public class WorldEdit {
BaseBlock to; BaseBlock to;
if (split.length == 2) { if (split.length == 2) {
from = -1; from = -1;
to = getBlock(split[1]); to = getBlock(split[1], true);
} else { } else {
from = getBlock(split[1]).getID(); from = getBlock(split[1]).getID();
to = getBlock(split[2]); to = getBlock(split[2]);