Skip to content

Commit

Permalink
Merge pull request #115 from SkytAsul/patch-2
Browse files Browse the repository at this point in the history
Fix registering multiple orphans at once
  • Loading branch information
Revxrsal authored Oct 13, 2024
2 parents 7852873 + 2db39a8 commit 0d98926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/main/java/revxrsal/commands/Lamp.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public SuggestionProvider<A> findNextSuggestionProvider(Type type, AnnotationLis
OrphanRegistry registry = (OrphanRegistry) instance;
commandClass = registry.handler().getClass();
instance = registry.handler();
return tree.register(commandClass, instance, registry.paths());
registered.addAll(tree.register(commandClass, instance, registry.paths()));
}

registered.addAll(tree.register(commandClass, instance));
Expand Down

0 comments on commit 0d98926

Please sign in to comment.