diff options
author | Spottedleaf <[email protected]> | 2024-07-17 11:33:13 -0700 |
---|---|---|
committer | Spottedleaf <[email protected]> | 2024-07-17 11:34:26 -0700 |
commit | b653276565ed37042caf47fb7ea4e7a36899b5a3 (patch) | |
tree | bca96e4ba943a0d4a0098ebd84a725f278fd9628 /patches/server/1002-Improve-cancelling-PreCreatureSpawnEvent-with-per-pl.patch | |
parent | 4efd24b336eaccb4bc1283a5b8f6dac447a3fd0b (diff) | |
download | Paper-b653276565ed37042caf47fb7ea4e7a36899b5a3.tar.gz Paper-b653276565ed37042caf47fb7ea4e7a36899b5a3.zip |
Finish chunk tick iteration optimisation port from Moonrise
Diffstat (limited to 'patches/server/1002-Improve-cancelling-PreCreatureSpawnEvent-with-per-pl.patch')
-rw-r--r-- | patches/server/1002-Improve-cancelling-PreCreatureSpawnEvent-with-per-pl.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/1002-Improve-cancelling-PreCreatureSpawnEvent-with-per-pl.patch b/patches/server/1002-Improve-cancelling-PreCreatureSpawnEvent-with-per-pl.patch index e670998b87..f8dc0458f9 100644 --- a/patches/server/1002-Improve-cancelling-PreCreatureSpawnEvent-with-per-pl.patch +++ b/patches/server/1002-Improve-cancelling-PreCreatureSpawnEvent-with-per-pl.patch @@ -37,10 +37,10 @@ index c282566ee45d79b4fb3297989e054c803873a294..dc64227e3b0d7855ef8870935aa437b7 } // Paper end diff --git a/src/main/java/net/minecraft/server/level/ServerChunkCache.java b/src/main/java/net/minecraft/server/level/ServerChunkCache.java -index 96a03770d47c47e07615815bcc3d474d6cd7711b..5f195875564822f422127462fbbeea5df4a4e1cb 100644 +index 2ed9a088d0fd56043d161909ce8e0df683a6413a..cdb9160244cc69acd36ac9afcfe109a15ab2ab58 100644 --- a/src/main/java/net/minecraft/server/level/ServerChunkCache.java +++ b/src/main/java/net/minecraft/server/level/ServerChunkCache.java -@@ -443,7 +443,17 @@ public class ServerChunkCache extends ChunkSource implements ca.spottedleaf.moon +@@ -455,7 +455,17 @@ public class ServerChunkCache extends ChunkSource implements ca.spottedleaf.moon if ((this.spawnFriendlies || this.spawnEnemies) && this.level.paperConfig().entities.spawning.perPlayerMobSpawns) { // don't count mobs when animals and monsters are disabled // re-set mob counts for (ServerPlayer player : this.level.players) { |