diff --git a/build.gradle b/build.gradle index cb45c81c..da784301 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ import groovy.io.FileType apply plugin: 'java-library' apply plugin: 'maven' -version = '0.1.14' +version = '0.1.15' group = 'com.mojang' task wrapper(type: Wrapper) { diff --git a/src/main/java/com/mojang/brigadier/CommandDispatcher.java b/src/main/java/com/mojang/brigadier/CommandDispatcher.java index 392e55d4..805580c1 100644 --- a/src/main/java/com/mojang/brigadier/CommandDispatcher.java +++ b/src/main/java/com/mojang/brigadier/CommandDispatcher.java @@ -101,12 +101,9 @@ public int execute(final ParseResults parse) throws CommandSyntaxException { final CommandContext context = builder.build(parse.getReader().getString()); if (child != null) { if (!child.getNodes().isEmpty()) { + foundCommand = true; final RedirectModifier modifier = Iterators.getLast(builder.getNodes().keySet().iterator()).getRedirectModifier(); final Collection results = modifier.apply(context); - if (results.isEmpty()) { - consumer.onCommandComplete(context, false, 0); - return 0; - } if (results.size() > 1) { forked = true; }