mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Fixed a mask parsing error that raised java.lang.StringIndexOutOfBoundsException.
This commit is contained in:
parent
2e7de18840
commit
730244056c
@ -415,6 +415,10 @@ public class WorldEdit {
|
|||||||
for (String component : maskString.split(" ")) {
|
for (String component : maskString.split(" ")) {
|
||||||
Mask current = null;
|
Mask current = null;
|
||||||
|
|
||||||
|
if (component.length() == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (component.charAt(0) == '#') {
|
if (component.charAt(0) == '#') {
|
||||||
if (component.equalsIgnoreCase("#existing")) {
|
if (component.equalsIgnoreCase("#existing")) {
|
||||||
current = new ExistingBlockMask();
|
current = new ExistingBlockMask();
|
||||||
|
Loading…
Reference in New Issue
Block a user