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

Paper Changes:
9ffaa44a Also restrict height in the vanilla teleport command
f8609691 Add unsupported-settings section to config (piston tnt dupe config option) (#3565)
d7bb893c Document fixup commit way of modifing patches (#3423)
2020-06-19 00:04:28 -05:00

30 lines
1.1 KiB
Diff

From f3054cc2a7f88ef976d520a933e31ae19f7266b6 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 517d7a9006..ef16aef13a 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -1114,7 +1114,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.26.2