Fix console completions on invalid commands (#7603)

This commit is contained in:
Jake Potrebic
2024-09-27 11:05:15 -07:00
parent d89b0fb649
commit eba36b62bd
3 changed files with 7 additions and 19 deletions

View File

@@ -534,7 +534,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- public int complete(final String buffer, final int cursor, final List<CharSequence> candidates) {
+ public void complete(LineReader reader, ParsedLine line, List<Candidate> candidates) {
+ final CraftServer server = this.server.server;
+ final String buffer = line.line();
+ final String buffer = "/" + line.line();
+ // Paper end
Waitable<List<String>> waitable = new Waitable<List<String>>() {
@Override