Skip to content

Commit

Permalink
fix literals after an argument not being added therefore breaking the…
Browse files Browse the repository at this point in the history
… command
  • Loading branch information
efekos committed Jul 6, 2024
1 parent e32f93d commit ee27fea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/dev/efekos/arn/Arn.java
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ private void registerCommands() throws ArnException {
if (builder != null) nodes.add(builder);
}

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

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

CommandSender sender = commandContext.getSource().getBukkitSender();
Expand Down

0 comments on commit ee27fea

Please sign in to comment.