Skip to content

Commit

Permalink
Remove instanceof AliasedParser check
Browse files Browse the repository at this point in the history
This check frustrates attempts at Masks/Patterns which are compatible with both FAWE and WE
  • Loading branch information
Zeranny committed Aug 15, 2023
1 parent a088e6a commit fb6c6f6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ public void register(InputParser<E> inputParser) {
*/
public boolean containsAlias(String alias) {
return parsers.stream().anyMatch(p -> {
if (!(p instanceof AliasedParser)) {
try {
return ((AliasedParser) p).getMatchedAliases().contains(alias);
} catch (Exception e) {
return false;
}
return ((AliasedParser) p).getMatchedAliases().contains(alias);
});
}

Expand Down

0 comments on commit fb6c6f6

Please sign in to comment.