From a0ac08b838f79b5b6d7eca80eb5b0c0425f62453 Mon Sep 17 00:00:00 2001 From: extendedclip Date: Fri, 21 Jun 2019 12:36:03 -0400 Subject: [PATCH] Start at 1 --- .../clip/placeholderapi/commands/ExpansionCloudCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/clip/placeholderapi/commands/ExpansionCloudCommands.java b/src/main/java/me/clip/placeholderapi/commands/ExpansionCloudCommands.java index b2ee528..7ae5750 100644 --- a/src/main/java/me/clip/placeholderapi/commands/ExpansionCloudCommands.java +++ b/src/main/java/me/clip/placeholderapi/commands/ExpansionCloudCommands.java @@ -328,7 +328,7 @@ public class ExpansionCloudCommands implements CommandExecutor { expansions.put(exp.getName(), exp); } List ce = expansions.keySet().stream().sorted().collect(Collectors.toList()); - int i = (int) ex.keySet().toArray()[0]+1; + int i = (int) ex.keySet().toArray()[0]; for (String name : ce) { if (expansions.get(name) == null) { continue; @@ -354,7 +354,7 @@ public class ExpansionCloudCommands implements CommandExecutor { expansions.put(exp.getName(), exp); } List ce = expansions.keySet().stream().sorted().collect(Collectors.toList()); - int i = 1; + int i = 0; for (String name : ce) { if (expansions.get(name) == null) { continue;