diff options
author | Spottedleaf <[email protected]> | 2024-11-27 12:19:39 -0800 |
---|---|---|
committer | Spottedleaf <[email protected]> | 2024-11-27 12:19:39 -0800 |
commit | d38624bdd8757f167552a278e6a355289aec7c48 (patch) | |
tree | e544d9c31e1c45c14013643ce50f16f7f156fa4f | |
parent | afb5b13056ebbcdd3ae834c039046ecad4fa89eb (diff) | |
download | Paper-d38624bdd8757f167552a278e6a355289aec7c48.tar.gz Paper-d38624bdd8757f167552a278e6a355289aec7c48.zip |
Do not call modifyEntityTrackingRange on own range
The range is already modified, so this call will not do anything.
-rw-r--r-- | patches/server/1038-Moonrise-optimisation-patches.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/1038-Moonrise-optimisation-patches.patch b/patches/server/1038-Moonrise-optimisation-patches.patch index d70d12cc2d..7fe3f312d4 100644 --- a/patches/server/1038-Moonrise-optimisation-patches.patch +++ b/patches/server/1038-Moonrise-optimisation-patches.patch @@ -24172,7 +24172,7 @@ index d9ad32acdf46a43a649334a3b736aeb7b3af21d1..fae17a075d7efaf24d916877dd5968eb public static final int RADIUS_AROUND_FULL_CHUNK = FULL_CHUNK_STEP.accumulatedDependencies().getRadius(); public static final int MAX_LEVEL = 33 + RADIUS_AROUND_FULL_CHUNK; diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java -index 7317c353edab8b11d9d94e257f968ac49284f47a..cb3850939955ae068d4776c835522e0b8f228984 100644 +index 7317c353edab8b11d9d94e257f968ac49284f47a..c185f634b962c40047696ec0df50eb88af3ac389 100644 --- a/src/main/java/net/minecraft/server/level/ChunkMap.java +++ b/src/main/java/net/minecraft/server/level/ChunkMap.java @@ -108,7 +108,7 @@ import org.slf4j.Logger; @@ -25455,7 +25455,7 @@ index 7317c353edab8b11d9d94e257f968ac49284f47a..cb3850939955ae068d4776c835522e0b - Iterator iterator = this.entity.getIndirectPassengers().iterator(); + // Paper start - optimise entity tracker + final Entity entity = this.entity; -+ int range = ca.spottedleaf.moonrise.common.PlatformHooks.get().modifyEntityTrackingRange(entity, this.range); ++ int range = this.range; - while (iterator.hasNext()) { - Entity entity = (Entity) iterator.next(); |