mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 18:37:42 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: 68994c64 Add a config to turn off Optimized TickList #3145 d847d336 Improve blocking players from opening inventories while sleeping ac4f6b50 Clean up Timings and Async Chunk Configs fcf89e85 Improve mid tick chunk loading, Fix Oversleep, other improvements ab36835c Improve random ticking behaviour - Fixes #3181
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From 3d7a3fe532407b0711763e320060afd9bd30a550 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 e9f1fd78a..1ba86d12f 100644
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
@@ -1090,7 +1090,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
|
|
|