Don't complete more than what's supported

This commit is contained in:
ZacSharp
2023-06-20 00:01:33 +02:00
parent 13742df877
commit 84777c2437

View File

@@ -60,6 +60,7 @@ public class GotoCommand extends Command {
public Stream<String> tabComplete(String label, IArgConsumer args) throws CommandException {
// since it's either a goal or a block, I don't think we can tab complete properly?
// so just tab complete for the block variant
args.requireMax(1);
return args.tabCompleteDatatype(ForBlockOptionalMeta.INSTANCE);
}