aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0229-Use-a-Queue-for-Queueing-Commands.patch
diff options
context:
space:
mode:
authorRiley Park <[email protected]>2024-07-21 03:26:33 -0700
committerRiley Park <[email protected]>2024-07-21 03:26:33 -0700
commitc250671fda4de965baec473519f38879a93b4524 (patch)
treeaff253e9540e37be5982f8356089cbf1384734fd /patches/server/0229-Use-a-Queue-for-Queueing-Commands.patch
parent38e61d072fa3043e71425ae62ab3ec7eb3041b0d (diff)
downloadPaper-c250671fda4de965baec473519f38879a93b4524.tar.gz
Paper-c250671fda4de965baec473519f38879a93b4524.zip
yeet, part 01
Diffstat (limited to 'patches/server/0229-Use-a-Queue-for-Queueing-Commands.patch')
-rw-r--r--patches/server/0229-Use-a-Queue-for-Queueing-Commands.patch5
1 files changed, 2 insertions, 3 deletions
diff --git a/patches/server/0229-Use-a-Queue-for-Queueing-Commands.patch b/patches/server/0229-Use-a-Queue-for-Queueing-Commands.patch
index eee2655478..e4a25f162a 100644
--- a/patches/server/0229-Use-a-Queue-for-Queueing-Commands.patch
+++ b/patches/server/0229-Use-a-Queue-for-Queueing-Commands.patch
@@ -6,7 +6,7 @@ Subject: [PATCH] Use a Queue for Queueing Commands
Lists are bad as Queues mmmkay.
diff --git a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
-index baf93b5d5883d0a5c360f1a475949804b7907636..b15cee6f21ff300b596922a8eed35a5f8a89fe22 100644
+index 4a5c2e7543ece634bd42f6557882004bddc3bbff..77d903d6c91794969c3238bafbedd5bf9a9701a9 100644
--- a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
+++ b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
@@ -78,7 +78,7 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface
@@ -18,7 +18,7 @@ index baf93b5d5883d0a5c360f1a475949804b7907636..b15cee6f21ff300b596922a8eed35a5f
@Nullable
private QueryThreadGs4 queryThreadGs4;
// private final RemoteControlCommandListener rconConsoleSource; // CraftBukkit - remove field
-@@ -438,13 +438,15 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface
+@@ -438,12 +438,14 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface
}
public void handleConsoleInput(String command, CommandSourceStack commandSource) {
@@ -27,7 +27,6 @@ index baf93b5d5883d0a5c360f1a475949804b7907636..b15cee6f21ff300b596922a8eed35a5f
}
public void handleConsoleInputs() {
- MinecraftTimings.serverCommandTimer.startTiming(); // Spigot
- while (!this.consoleInput.isEmpty()) {
- ConsoleInput servercommand = (ConsoleInput) this.consoleInput.remove(0);
+ // Paper start - Perf: use proper queue