Complete the last argument, not the first one

This commit is contained in:
ZacSharp
2023-06-20 00:00:52 +02:00
parent f55f7f19b4
commit 13742df877

View File

@@ -51,7 +51,11 @@ public class MineCommand extends Command {
}
@Override
public Stream<String> tabComplete(String label, IArgConsumer args) {
public Stream<String> tabComplete(String label, IArgConsumer args) throws CommandException {
args.getAsOrDefault(Integer.class, 0);
while (args.has(2)) {
args.getDatatypeFor(ForBlockOptionalMeta.INSTANCE);
}
return args.tabCompleteDatatype(ForBlockOptionalMeta.INSTANCE);
}