3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-06 16:12:51 +02:00

Fix special masks issue

This fixes the issue where masks other than SimpleBlock masks (like Offset mask or negate mask) would not work.

The issue was caused by parseFromListInput() who would throw SuggestInputParseException if the input was not a valid block definition.
But as the parser was catching NoMatchException only, this was causing an error and the MaskFactory was broken.
Dieser Commit ist enthalten in:
mrlasagne 2020-04-13 22:34:15 +02:00 committet von GitHub
Ursprung 735a37ffd0
Commit cba7c21ce5
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -56,7 +56,7 @@ public class BlocksMaskParser extends InputParser<Mask> {
return null;
}
return new BlockMask(context.getExtent(), holders);
} catch (NoMatchException e) {
} catch (InputParseException e) {
return null;
}
}