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.
This commit is contained in:
mrlasagne 2020-04-13 22:34:15 +02:00 committed by GitHub
parent 735a37ffd0
commit cba7c21ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}