mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-18 01:46:11 +00:00
fix: respect block categories in RichMaskParser (#1694)
This commit is contained in:
parent
8f1ca48bfc
commit
6e26741fdc
@ -85,7 +85,7 @@ public class RichMaskParser extends FaweParser<Mask> {
|
||||
if (charMask && input.charAt(0) == '=') {
|
||||
mask = parseFromInput(char0 + "[" + input.substring(1) + "]", context);
|
||||
}
|
||||
if (char0 == '#') {
|
||||
if (char0 == '#' && command.length() > 1 && command.charAt(1) != '#') {
|
||||
throw new SuggestInputParseException(
|
||||
new NoMatchException(Caption.of("fawe.error.parse.unknown-mask", full,
|
||||
TextComponent
|
||||
@ -128,6 +128,12 @@ public class RichMaskParser extends FaweParser<Mask> {
|
||||
input = input.substring(input.indexOf(char0) + 1);
|
||||
mask = parseFromInput(char0 + "[" + input + "]", context);
|
||||
}
|
||||
case '#' -> {
|
||||
if (!(input.charAt(1) == '#')) {
|
||||
break;
|
||||
}
|
||||
mask = worldEdit.getMaskFactory().parseWithoutRich(full, context);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (mask == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user