3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Fix command block tab complete on <=1.12.2

Dieser Commit ist enthalten in:
Andrew Steinborn 2019-11-28 15:22:26 -05:00
Ursprung d1acd5b6d5
Commit d137d6ce46

Datei anzeigen

@ -423,10 +423,7 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler {
* @param response the tab complete response from the backend * @param response the tab complete response from the backend
*/ */
public void handleTabCompleteResponse(TabCompleteResponse response) { public void handleTabCompleteResponse(TabCompleteResponse response) {
if (outstandingTabComplete != null) { if (outstandingTabComplete != null && !outstandingTabComplete.isAssumeCommand()) {
if (outstandingTabComplete.isAssumeCommand()) {
return; // used for command blocks which can't run Velocity commands anyway
}
if (outstandingTabComplete.getCommand().startsWith("/")) { if (outstandingTabComplete.getCommand().startsWith("/")) {
this.finishCommandTabComplete(outstandingTabComplete, response); this.finishCommandTabComplete(outstandingTabComplete, response);
} else { } else {