Attach the command executor to brigadier last parameters

Fixes #372
This commit is contained in:
chickeneer
2022-07-30 19:56:22 -05:00
parent 3652ceb975
commit 5374719bf3
@@ -162,7 +162,7 @@ public class ACFBrigadierManager<S> {
.suggests(suggestionProvider)
.requires(sender -> permChecker.test(command, sender));
if (nextParam != null && nextParam.canExecuteWithoutInput()) {
if (nextParam == null || nextParam.canExecuteWithoutInput()) {
builder.executes(executor);
}