mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 17:37:42 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: ab74bb45 Speed up processing of chunk loads and generation f5dd491f Increase Light Queue Size 9ab69348 Don't load chunks when attempting to unload a chunk 38c62622 Improve Optimize Memory use logic to make iterator safer and fix bad plugins like P2
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From f7d91586882e500e530d648546a9d0f35bf2c304 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 6059933c5f..cefda1cf27 100644
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
@@ -1068,7 +1068,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
|
|
|