Skip to content

Commit

Permalink
Fix: including "highestLimit" number (#4218)
Browse files Browse the repository at this point in the history
Including "highestLimit" number
  • Loading branch information
RedstoneFuture authored Oct 29, 2023
1 parent 15b4cbd commit 95c7f62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private TabCompletions() {
return Collections.emptyList();
}
final List<String> commands = new ArrayList<>();
for (int i = offset; i < highestLimit && (offset - i + amountLimit) > 0; i++) {
for (int i = offset; i <= highestLimit && (offset - i + amountLimit) > 0; i++) {
commands.add(String.valueOf(i));
}
return asCompletions(commands.toArray(new String[0]));
Expand Down

0 comments on commit 95c7f62

Please sign in to comment.