aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/1051-Lag-compensation-ticks.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/1051-Lag-compensation-ticks.patch
parenta2d6c26baf3b1736e29ebdda0573c3eb9ca3d689 (diff)
downloadPaper-1.21.3-sleep-tasks.tar.gz
Paper-1.21.3-sleep-tasks.zip
Tick the global region scheduler, but not region tasks while sleeping1.21.3-sleep-tasks
Diffstat (limited to 'patches/server/1051-Lag-compensation-ticks.patch')
-rw-r--r--patches/server/1051-Lag-compensation-ticks.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/1051-Lag-compensation-ticks.patch b/patches/server/1051-Lag-compensation-ticks.patch
index e00741dadd..f7b7103fdb 100644
--- a/patches/server/1051-Lag-compensation-ticks.patch
+++ b/patches/server/1051-Lag-compensation-ticks.patch
@@ -8,7 +8,7 @@ Areas affected by lag comepnsation:
- Eating food items
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
-index c1e8d2679083516040e9d1768d79f5e4d71bf0a6..af7c6f56444c0e495fd39da872f8030199afc634 100644
+index ae1449b6b9a74048e5c6eea8b6005a264ff9ad90..497c58f2050966d59e953fce14c589fd9d1b7a75 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -331,6 +331,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
@@ -19,7 +19,7 @@ index c1e8d2679083516040e9d1768d79f5e4d71bf0a6..af7c6f56444c0e495fd39da872f80301
public static <S extends MinecraftServer> S spin(Function<Thread, S> serverFactory) {
AtomicReference<S> atomicreference = new AtomicReference();
-@@ -1842,6 +1843,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
+@@ -1844,6 +1845,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
worldserver.hasPhysicsEvent = org.bukkit.event.block.BlockPhysicsEvent.getHandlerList().getRegisteredListeners().length > 0; // Paper - BlockPhysicsEvent
worldserver.hasEntityMoveEvent = io.papermc.paper.event.entity.EntityMoveEvent.getHandlerList().getRegisteredListeners().length > 0; // Paper - Add EntityMoveEvent
net.minecraft.world.level.block.entity.HopperBlockEntity.skipHopperEvents = worldserver.paperConfig().hopper.disableMoveEvent || org.bukkit.event.inventory.InventoryMoveItemEvent.getHandlerList().getRegisteredListeners().length == 0; // Paper - Perf: Optimize Hoppers