geforkt von Mirrors/FastAsyncWorldEdit
Remove getBlock() restriction for commands that ask for a block to search for.
Dieser Commit ist enthalten in:
Ursprung
749649a80b
Commit
3cbc5b22a4
@ -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]);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren