Fixed a mask parsing error that raised java.lang.StringIndexOutOfBoundsException.

This commit is contained in:
sk89q 2011-06-04 12:22:33 -07:00
parent 2e7de18840
commit 730244056c

View File

@ -415,6 +415,10 @@ public class WorldEdit {
for (String component : maskString.split(" ")) {
Mask current = null;
if (component.length() == 0) {
continue;
}
if (component.charAt(0) == '#') {
if (component.equalsIgnoreCase("#existing")) {
current = new ExistingBlockMask();