Fix command block tab complete on <=1.12.2

This commit is contained in:
Andrew Steinborn
2019-11-28 15:22:26 -05:00
parent 50b50f3cbb
commit 667610c251

View File

@@ -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 {