mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Allow masks parsed from input to ignore the blacklist.
Fixes WORLDEDIT-3149.
This commit is contained in:
parent
85f014e256
commit
68e5d5926a
@ -42,6 +42,26 @@ public class ParserContext {
|
||||
private boolean restricted = true;
|
||||
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.
|
||||
*
|
||||
|
@ -132,7 +132,9 @@ class DefaultMaskParser extends InputParser<Mask> {
|
||||
}
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user