Files
Purpur/patches/server/0125-Tuinity-Always-able-to-execute-tasks-on-the-main-ser.patch
William Blake Galbreath a29baddb7d Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
d33ba160 Fix incorrect keyword use on visibleChunksClone
2f343015 Updated Upstream (Bukkit/CraftBukkit)
a65831bd Optimize PlayerChunkMap memory use for visibleChunks
2020-04-08 23:13:56 -05:00

30 lines
1.1 KiB
Diff

From 0ccf09a1645bca549d5ab57a901dbc594406a733 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 daa34492c6..914eb19b6e 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -1053,7 +1053,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.24.0