mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fix: including "highestLimit" number (#4218)
Including "highestLimit" number
This commit is contained in:
parent
15b4cbdb0f
commit
95c7f621fb
@ -173,7 +173,7 @@ public final class TabCompletions {
|
|||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
final List<String> commands = new ArrayList<>();
|
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));
|
commands.add(String.valueOf(i));
|
||||||
}
|
}
|
||||||
return asCompletions(commands.toArray(new String[0]));
|
return asCompletions(commands.toArray(new String[0]));
|
||||||
|
Loading…
Reference in New Issue
Block a user