mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00: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.
This commit is contained in:
parent
735a37ffd0
commit
cba7c21ce5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user