Update Brigadier version with fix

This commit is contained in:
md_5 2023-06-08 17:28:32 +10:00
parent 68b3205624
commit b9873b0d44
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -232,7 +232,6 @@ public class CommandDispatcher<S> {
if (child != null) { if (child != null) {
forked |= context.isForked(); forked |= context.isForked();
if (child.hasNodes()) { if (child.hasNodes()) {
foundCommand = true;
final RedirectModifier<S> modifier = context.getRedirectModifier(); final RedirectModifier<S> modifier = context.getRedirectModifier();
if (modifier == null) { if (modifier == null) {
if (next == null) { if (next == null) {
@ -249,6 +248,8 @@ public class CommandDispatcher<S> {
for (final S source : results) { for (final S source : results) {
next.add(child.copyFor(source)); next.add(child.copyFor(source));
} }
} else {
foundCommand = true;
} }
} catch (final CommandSyntaxException ex) { } catch (final CommandSyntaxException ex) {
consumer.onCommandComplete(context, false, 0); consumer.onCommandComplete(context, false, 0);