From a4782f72f75af4c6b7966674d0ada935844ccca3 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sun, 5 Dec 2021 13:07:44 -0800 Subject: [PATCH] [ci skip] fixup indent --- patches/server/0827-Optimise-chunk-tick-iteration.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/server/0827-Optimise-chunk-tick-iteration.patch b/patches/server/0827-Optimise-chunk-tick-iteration.patch index 129bc70c0..3921f5b13 100644 --- a/patches/server/0827-Optimise-chunk-tick-iteration.patch +++ b/patches/server/0827-Optimise-chunk-tick-iteration.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Optimise chunk tick iteration Use a dedicated list of entity ticking chunks to reduce the cost diff --git a/src/main/java/net/minecraft/server/level/ServerChunkCache.java b/src/main/java/net/minecraft/server/level/ServerChunkCache.java -index 51c4ca36221e9af074fa92f6ab94fa7ba5403080..ca16bde30da84e79fef856304ada9e3b8bfb9806 100644 +index 51c4ca36221e9af074fa92f6ab94fa7ba5403080..8d38a5a4c74d3f9298ba4f215e978fbc25ba91f0 100644 --- a/src/main/java/net/minecraft/server/level/ServerChunkCache.java +++ b/src/main/java/net/minecraft/server/level/ServerChunkCache.java @@ -1001,34 +1001,46 @@ public class ServerChunkCache extends ChunkSource { @@ -61,7 +61,7 @@ index 51c4ca36221e9af074fa92f6ab94fa7ba5403080..ca16bde30da84e79fef856304ada9e3b + holder.broadcastChanges(chunk1); + this.level.timings.broadcastChunkUpdates.stopTiming(); // Paper - timing + gameprofilerfiller.pop(); -+ // Paper end - optimise chunk tick iteration ++ // Paper end - optimise chunk tick iteration ChunkPos chunkcoordintpair = chunk1.getPos(); - if (this.level.isPositionEntityTicking(chunkcoordintpair) && this.chunkMap.anyPlayerCloseEnoughForSpawning(chunkproviderserver_a.holder, chunkcoordintpair, false)) { // Paper - optimise anyPlayerCloseEnoughForSpawning @@ -76,7 +76,7 @@ index 51c4ca36221e9af074fa92f6ab94fa7ba5403080..ca16bde30da84e79fef856304ada9e3b this.level.tickChunk(chunk1, k); } } -+ // Paper start - optimise chunk tick iteration ++ // Paper start - optimise chunk tick iteration + } } +