geforkt von Mirrors/FastAsyncWorldEdit
Allow masks parsed from input to ignore the blacklist.
Fixes WORLDEDIT-3149.
Dieser Commit ist enthalten in:
Ursprung
85f014e256
Commit
68e5d5926a
@ -42,6 +42,26 @@ public class ParserContext {
|
|||||||
private boolean restricted = true;
|
private boolean restricted = true;
|
||||||
private boolean preferringWildcard;
|
private boolean preferringWildcard;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new instance.
|
||||||
|
*/
|
||||||
|
public ParserContext() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a copy of another instance.
|
||||||
|
*
|
||||||
|
* @param other the other instance
|
||||||
|
*/
|
||||||
|
public ParserContext(ParserContext other) {
|
||||||
|
setExtent(other.getExtent());
|
||||||
|
setSession(other.getSession());
|
||||||
|
setWorld(other.getWorld());
|
||||||
|
setActor(other.getActor());
|
||||||
|
setRestricted(other.isRestricted());
|
||||||
|
setPreferringWildcard(other.isPreferringWildcard());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the {@link Extent} set on this context.
|
* Get the {@link Extent} set on this context.
|
||||||
*
|
*
|
||||||
|
@ -132,7 +132,9 @@ class DefaultMaskParser extends InputParser<Mask> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return new BlockMask(extent, worldEdit.getBlockRegistry().parseFromListInput(component, context));
|
ParserContext tempContext = new ParserContext(context);
|
||||||
|
tempContext.setRestricted(false);
|
||||||
|
return new BlockMask(extent, worldEdit.getBlockRegistry().parseFromListInput(component, tempContext));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren