Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 13:00:06 +01:00
aa52bf9e33
Mojang made some changes to priorities in 1.17 and it seems that these changes conflict with the changes made in this patch, which in some cases appears to cause excessive rescheduling of tasks. This, however, is not confirmed as such but seems to be the behavior that we're seeing to cause this issue, if mojang has adopted the changes we suggested, then a good chunk of this patch may be unneeded, but, this needs a much better look than I'm currently able to do
25 Zeilen
1.2 KiB
Diff
25 Zeilen
1.2 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/Commands.java b/src/main/java/net/minecraft/commands/Commands.java
|
|
index 5574c19d32bb8a0c08011be9ebb9105886459ec0..a6f10d47bc4e2cadcc3e06cffa011ed7fb97c68d 100644
|
|
--- a/src/main/java/net/minecraft/commands/Commands.java
|
|
+++ b/src/main/java/net/minecraft/commands/Commands.java
|
|
@@ -334,7 +334,12 @@ public class Commands {
|
|
}
|
|
|
|
public void sendCommands(ServerPlayer player) {
|
|
- if ( org.spigotmc.SpigotConfig.tabComplete < 0 ) return; // Spigot
|
|
+ // Paper start - Send empty commands if tab completion is disabled
|
|
+ if ( org.spigotmc.SpigotConfig.tabComplete < 0 ) { //return; // Spigot
|
|
+ player.connection.send(new ClientboundCommandsPacket(new RootCommandNode<>()));
|
|
+ return;
|
|
+ }
|
|
+ // Paper end
|
|
// CraftBukkit start
|
|
// Register Vanilla commands into builtRoot as before
|
|
// Paper start - Async command map building
|