mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-11 20:13:55 +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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user