aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/1034-Lag-compensation-ticks.patch
diff options
context:
space:
mode:
authorJason Penilla <[email protected]>2024-07-18 15:33:14 -0700
committerGitHub <[email protected]>2024-07-18 15:33:14 -0700
commitd08e8d1afabcce6a40bab5863f2c297cd7ba8cfa (patch)
treef3232a117c7d71a5285959a95abca2f9e82a3ec5 /patches/server/1034-Lag-compensation-ticks.patch
parenta8db5274493f3bf6c91c8bc9d4a3618a02ba5500 (diff)
downloadPaper-d08e8d1afabcce6a40bab5863f2c297cd7ba8cfa.tar.gz
Paper-d08e8d1afabcce6a40bab5863f2c297cd7ba8cfa.zip
Add total time to done message (#11109)
* Add total time to done message Previously it would only show the world load time which is misleading * Add comments
Diffstat (limited to 'patches/server/1034-Lag-compensation-ticks.patch')
-rw-r--r--patches/server/1034-Lag-compensation-ticks.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/1034-Lag-compensation-ticks.patch b/patches/server/1034-Lag-compensation-ticks.patch
index ad77998efa..068821b601 100644
--- a/patches/server/1034-Lag-compensation-ticks.patch
+++ b/patches/server/1034-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 25300f6011c213b67876552abcb12c290d586fe4..3431a075cdfcd21a236f3350decb46068fd2e6b8 100644
+index 36e16726d62d378dd55a1d52cc2680532dd36316..eb32565e63cf1ae18d7f738f2ec57f0d16457088 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -322,6 +322,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
@@ -19,7 +19,7 @@ index 25300f6011c213b67876552abcb12c290d586fe4..3431a075cdfcd21a236f3350decb4606
public static <S extends MinecraftServer> S spin(Function<Thread, S> serverFactory) {
AtomicReference<S> atomicreference = new AtomicReference();
-@@ -1765,6 +1766,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
+@@ -1766,6 +1767,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