From 95c7f621fb3666f88868d411c96c87c4e2fc0dc8 Mon Sep 17 00:00:00 2001 From: RedstoneFuture Date: Sun, 29 Oct 2023 10:55:01 +0100 Subject: [PATCH] Fix: including "highestLimit" number (#4218) Including "highestLimit" number --- .../src/main/java/com/plotsquared/core/util/TabCompletions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/util/TabCompletions.java b/Core/src/main/java/com/plotsquared/core/util/TabCompletions.java index b3324f549..c9d1b3037 100644 --- a/Core/src/main/java/com/plotsquared/core/util/TabCompletions.java +++ b/Core/src/main/java/com/plotsquared/core/util/TabCompletions.java @@ -173,7 +173,7 @@ public final class TabCompletions { return Collections.emptyList(); } final List 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]));