Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-02 17:40:09 +01:00
fix: respect block categories in RichMaskParser (#1694)
Dieser Commit ist enthalten in:
Ursprung
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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren