mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 09:57:43 +01:00
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)
30 lines
1.1 KiB
Diff
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
|
|
|