From 667610c251f29a488156f513d06a2a9b110469b0 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 dc4058fc5..2072372f5 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 @@ -417,10 +417,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 {