Skip to content

Commit a66d879

Browse files
committed
Also, we only need the list once
1 parent 8f0c1eb commit a66d879

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

commandapi-platforms/commandapi-paper/commandapi-paper-core/src/main/java/dev/jorel/commandapi/PaperCommandRegistration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ private void registerLifecycleEvent(LifecycleEventManager<?> lifecycleEventManag
162162
command.register(command.namespace);
163163
}
164164
}
165+
bootstrapCommands.clear();
165166
for (CommandNode<CommandSourceStack> commandNode : dispatcher.getRoot().getChildren()) {
166167
LiteralCommandNode<CommandSourceStack> node = (LiteralCommandNode<CommandSourceStack>) commandNode;
167168
event.registrar().register(node, getDescription(node.getLiteral()));

0 commit comments

Comments
 (0)