You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commandapi-platforms/commandapi-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/ListArgumentCommon.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -132,16 +132,18 @@ public <CommandSourceStack> List<T> parseArgument(CommandContext<CommandSourceSt
132
132
133
133
// If the argument's value is in the list of values, include it
134
134
List<T> list = newArrayList<>();
135
+
Set<String> listKeys = newHashSet<>(); // Set to keep track of duplicates - we can't use the main list because of object hashing
0 commit comments