Skip to content

Commit

Permalink
fix doubling literals
Browse files Browse the repository at this point in the history
  • Loading branch information
efekos committed Jul 6, 2024
1 parent ee27fea commit e266838
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/dev/efekos/arn/Arn.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ private void scanConfigurers(Reflections reflections) {
configurerInstance.addHandlerMethodArgumentResolvers(handlerMethodArgumentResolvers);
configurerInstance.addArgumentResolvers(commandArgumentResolvers);
configurerInstance.putArgumentResolverExceptions(commandArgumentResolverExceptions);
System.out.println("a");
configurerInstance.putHandlerMethodArgumentResolverExceptions(handlerExceptions);
}
}
Expand Down Expand Up @@ -439,7 +438,7 @@ private void registerCommands() throws ArnException {
}

for (CommandAnnotationLiteral lit : literals)
if(lit.getOffset()==nonnullResolvers.size()) nodes.add(Commands.literal(lit.getLiteral()));
if(lit.getOffset()==nonnullResolvers.size()&&lit.getOffset()!=0) nodes.add(Commands.literal(lit.getLiteral()));

com.mojang.brigadier.Command<CommandSourceStack> lambda = commandContext -> {

Expand Down

0 comments on commit e266838

Please sign in to comment.