aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/1055-Avoid-issues-with-certain-tasks-not-processing-durin.patch
diff options
context:
space:
mode:
authorJason Penilla <[email protected]>2024-10-27 15:17:18 -0700
committerJason Penilla <[email protected]>2024-10-27 15:17:18 -0700
commit31ef96b48b65aef4be553765b62022e2b71c7af3 (patch)
tree04d078ee632f204da010553668ee908b168894da /patches/server/1055-Avoid-issues-with-certain-tasks-not-processing-durin.patch
parenta2d6c26baf3b1736e29ebdda0573c3eb9ca3d689 (diff)
downloadPaper-31ef96b48b65aef4be553765b62022e2b71c7af3.tar.gz
Paper-31ef96b48b65aef4be553765b62022e2b71c7af3.zip
Tick the global region scheduler, but not region tasks while sleeping1.21.3-sleep-tasks
Diffstat (limited to 'patches/server/1055-Avoid-issues-with-certain-tasks-not-processing-durin.patch')
-rw-r--r--patches/server/1055-Avoid-issues-with-certain-tasks-not-processing-durin.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/server/1055-Avoid-issues-with-certain-tasks-not-processing-durin.patch b/patches/server/1055-Avoid-issues-with-certain-tasks-not-processing-durin.patch
index ed38a06210..5a9072964b 100644
--- a/patches/server/1055-Avoid-issues-with-certain-tasks-not-processing-durin.patch
+++ b/patches/server/1055-Avoid-issues-with-certain-tasks-not-processing-durin.patch
@@ -6,12 +6,12 @@ Subject: [PATCH] Avoid issues with certain tasks not processing during sleep
Execute processQueue tasks during sleep & unload chunks during sleep
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
-index af7c6f56444c0e495fd39da872f8030199afc634..7933d6900dac67a24fb5f9378097dbde34be30b1 100644
+index 497c58f2050966d59e953fce14c589fd9d1b7a75..af2f2a1b6266390e3f334fa8a0b06cb4d0370ce1 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
-@@ -1639,6 +1639,16 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
- }
+@@ -1640,6 +1640,16 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
+ ((io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler) Bukkit.getGlobalRegionScheduler()).tick(); // Folia scheduler API
this.server.getScheduler().mainThreadHeartbeat(); // CraftBukkit
+ // Paper start - avoid issues with certain tasks not processing during sleep
+ Runnable task;