mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-31 12:03:27 +01:00
Return after sending empty commands (#5586)
This commit is contained in:
parent
084ee854f8
commit
57b254d94f
1 changed files with 6 additions and 3 deletions
|
@ -13,9 +13,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
|
||||
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
|
||||
+ // Paper start - Send empty commands if tab completion is disabled
|
||||
+ if ( org.spigotmc.SpigotConfig.tabComplete < 0 ) { //return; // Spigot
|
||||
+ entityplayer.playerConnection.sendPacket(new PacketPlayOutCommands(new RootCommandNode<>()));
|
||||
+ return;
|
||||
+ }
|
||||
+ // Paper end
|
||||
// CraftBukkit start
|
||||
// Register Vanilla commands into builtRoot as before
|
||||
// Paper start - Async command map building
|
||||
|
|
Loading…
Add table
Reference in a new issue