Files
Purpur/patches/server/0120-Tuinity-Always-able-to-execute-tasks-on-the-main-ser.patch
ChrystiGalbreath 6c4aab0053 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
0f06d380 Restrict vanilla teleport command to within worldborder
24d93aaf Fix Optional null issue - Fixes #3155
eb71c5fa Fix incorect timing of mspt
1ca80434 Optimise entity hard collision checking
b67a4237 Don't run entity collision code if not needed
bd9aa547 Optimise ArraySetSorted#removeIf
78871d07 Make JavaClassLoader thread-safe (Fixes #3137) (#3144)
2020-04-16 20:45:31 -05:00

30 lines
1.1 KiB
Diff

From fcf79cdd6ddb8adcb2a81596411637ce49d2b740 Mon Sep 17 00:00:00 2001
From: Spottedleaf <spottedleaf@spottedleaf.dev>
Date: Fri, 3 Apr 2020 02:21:13 -0700
Subject: [PATCH] Tuinity - Always able to execute tasks on the main server
queue
This should move all queued packet execution into the main server
tick loop, so this will free up some time for oversleep to act on
chunks.
---
src/main/java/net/minecraft/server/MinecraftServer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index a712ae3c4..8f78fe511 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -1070,7 +1070,7 @@ public abstract class MinecraftServer extends IAsyncTaskHandlerReentrant<TickTas
}
protected boolean canExecute(TickTask ticktask) {
- return ticktask.a() + 3 < this.ticks || this.canSleepForTick();
+ return true; // Purpur - always able to execute tasks
}
@Override
--
2.25.0.windows.1