3
0
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:
Pierre Maurice Schwang 2022-04-11 13:59:54 +02:00 committet von GitHub
Ursprung 8f1ca48bfc
Commit 6e26741fdc
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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) {