From a4de94883083d62401c81d2dad24bd253e6f950b Mon Sep 17 00:00:00 2001 From: iiAhmedYT <61851106+iiAhmedYT@users.noreply.github.com> Date: Sun, 16 Jun 2024 13:07:27 +0300 Subject: [PATCH] Fix list placeholder --- .../to/itsme/itsmyconfig/placeholder/type/ListPlaceholder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/to/itsme/itsmyconfig/placeholder/type/ListPlaceholder.java b/src/main/java/to/itsme/itsmyconfig/placeholder/type/ListPlaceholder.java index 1093632..1502168 100644 --- a/src/main/java/to/itsme/itsmyconfig/placeholder/type/ListPlaceholder.java +++ b/src/main/java/to/itsme/itsmyconfig/placeholder/type/ListPlaceholder.java @@ -24,7 +24,7 @@ public String getResult( } final int line = Strings.intOrDefault(args[0], 1) - 1; - if (line > list.size()) { + if (line >= list.size()) { return ""; }