Skip to content

Commit

Permalink
Merge pull request #119 from SkytAsul/patch-3
Browse files Browse the repository at this point in the history
Fixed orphan commands registration
  • Loading branch information
Revxrsal authored Nov 6, 2024
2 parents 278d511 + 38cc2d5 commit e1fed89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/main/java/revxrsal/commands/Lamp.java
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ public SuggestionProvider<A> findNextSuggestionProvider(Type type, AnnotationLis
commandClass = registry.handler().getClass();
instance = registry.handler();
registered.addAll(tree.register(commandClass, instance, registry.paths()));
} else {
registered.addAll(tree.register(commandClass, instance));
}

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

0 comments on commit e1fed89

Please sign in to comment.