From d137d6ce4690e8aaa0935899f941e45417d7cf3a Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Thu, 28 Nov 2019 15:22:26 -0500 Subject: [PATCH] Fix command block tab complete on <=1.12.2 --- .../proxy/connection/client/ClientPlaySessionHandler.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java index 38a426d7a..07ee14678 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java @@ -423,10 +423,7 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler { * @param response the tab complete response from the backend */ public void handleTabCompleteResponse(TabCompleteResponse response) { - if (outstandingTabComplete != null) { - if (outstandingTabComplete.isAssumeCommand()) { - return; // used for command blocks which can't run Velocity commands anyway - } + if (outstandingTabComplete != null && !outstandingTabComplete.isAssumeCommand()) { if (outstandingTabComplete.getCommand().startsWith("/")) { this.finishCommandTabComplete(outstandingTabComplete, response); } else {