geforkt von Mirrors/Paper
22 Zeilen
1.1 KiB
Diff
22 Zeilen
1.1 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Shane Freeder <theboyetronic@gmail.com>
|
||
|
Date: Mon, 26 Apr 2021 01:27:08 +0100
|
||
|
Subject: [PATCH] Send empty commands if tab completion is disabled
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/commands/CommandDispatcher.java b/src/main/java/net/minecraft/commands/CommandDispatcher.java
|
||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||
|
--- a/src/main/java/net/minecraft/commands/CommandDispatcher.java
|
||
|
+++ b/src/main/java/net/minecraft/commands/CommandDispatcher.java
|
||
|
@@ -0,0 +0,0 @@ public class CommandDispatcher {
|
||
|
}
|
||
|
|
||
|
public void a(EntityPlayer entityplayer) {
|
||
|
- if ( org.spigotmc.SpigotConfig.tabComplete < 0 ) return; // Spigot
|
||
|
+ if ( org.spigotmc.SpigotConfig.tabComplete < 0 ) { //return; // Spigot // Paper
|
||
|
+ entityplayer.playerConnection.sendPacket(new PacketPlayOutCommands(new RootCommandNode<>())); // Paper
|
||
|
+ } // Paper
|
||
|
// CraftBukkit start
|
||
|
// Register Vanilla commands into builtRoot as before
|
||
|
// Paper start - Async command map building
|