Skip to content

Commit

Permalink
Fix problem in CommandTicTacToeAccept::onTabComplete
Browse files Browse the repository at this point in the history
  • Loading branch information
lscgh committed Feb 6, 2024
1 parent 8f7867b commit c00124b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public List<String> onTabComplete(CommandSender sender, Command command, String
for(String arg: args) argList.add(arg);
argList.removeIf((arg) -> arg.isEmpty() && !CommandTicTacToeAccept.containsNonEmptyString(argList.subList(0, Math.max(0, argList.indexOf(arg) - 1))));

if(argList.size() > CommandTicTacToeAccept.ARG_COUNT) return new ArrayList<String>();
if(argList.size() >= CommandTicTacToeAccept.ARG_COUNT) return new ArrayList<String>();

ArrayList<String> completions = new ArrayList<String>();
for(Game queuedGame: Game.queuedGames.values()) {
Expand Down

0 comments on commit c00124b

Please sign in to comment.