Skip to content

Commit

Permalink
Fix tab complete exception in sanctiontown (#7613)
Browse files Browse the repository at this point in the history
  • Loading branch information
Warriorrrr authored Sep 30, 2024
1 parent 95a6b70 commit af10041
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ else if (args.length == 3)
break;
if (args.length == 2)
return NameUtil.filterByStart(Arrays.asList("add", "remove", "list"), args[1]);
if (args.length == 3 && args[1].equalsIgnoreCase("add") || args[1].equalsIgnoreCase("remove"))
if (args.length == 3 && (args[1].equalsIgnoreCase("add") || args[1].equalsIgnoreCase("remove")))
return NameUtil.filterByStart(TownyUniverse.getInstance().getTowns()
.stream()
.filter(t -> !nation.hasTown(t))
Expand Down

0 comments on commit af10041

Please sign in to comment.