Fixed tab completion bug

This commit is contained in:
Auxilor
2022-11-09 12:59:37 +00:00
parent d5ddcaea4b
commit 019cdbf9c8

View File

@@ -205,7 +205,7 @@ abstract class HandledCommand implements CommandBase {
if (this.getTabCompleter() != null) {
return this.getTabCompleter().tabComplete(sender, Arrays.asList(args));
} else {
List<String> completions = this.tabComplete(sender, Arrays.asList(args));
List<String> completions = new ArrayList<>(this.tabComplete(sender, Arrays.asList(args)));
if (sender instanceof Player player) {
completions.addAll(this.tabComplete(player, Arrays.asList(args)));
}