diff --git a/src/main/java/com/mojang/brigadier/CommandDispatcher.java b/src/main/java/com/mojang/brigadier/CommandDispatcher.java index 640a391..f6bc276 100644 --- a/src/main/java/com/mojang/brigadier/CommandDispatcher.java +++ b/src/main/java/com/mojang/brigadier/CommandDispatcher.java @@ -501,7 +501,7 @@ public class CommandDispatcher { final String usage = getSmartUsage(children.get(0), source, childOptional, childOptional); if (usage != null) return self + ARGUMENT_SEPARATOR + usage; } else if (children.size() > 1) { - final List childUsage = new ArrayList<>(); + final LinkedList childUsage = new LinkedList<>(); for (final CommandNode child : children) { final String usage = getSmartUsage(child, source, childOptional, true); if (usage != null) childUsage.add(usage);