@@ -269,7 +269,7 @@ index 0000000000000000000000000000000000000000..11de56afaf059b00fa5bec293516bcdc
269269+ }
270270+ }
271271diff --git a/src/main/java/net/minecraft/server/level/ChunkMap.java b/src/main/java/net/minecraft/server/level/ChunkMap.java
272- index 75381712377c1b77289a6b5877a657af8eb39a41..056e35b00bd840d8c62c4dc978cbbe5bb8c37887 100644
272+ index d2755c00a28fa584d506259f33f8da44c2cf4842..6a8d929721f61b5235614496f60473b89a227ee5 100644
273273--- a/src/main/java/net/minecraft/server/level/ChunkMap.java
274274+++ b/src/main/java/net/minecraft/server/level/ChunkMap.java
275275@@ -151,6 +151,7 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider
@@ -370,7 +370,7 @@ index f0dac1f596911eb2109192ef16a619f8ae71d1f7..07b616d9d7cde77c001f5c627daef073
370370 this.naturalSpawnChunkCounter.runAllUpdates();
371371 return this.naturalSpawnChunkCounter.chunks.size();
372372diff --git a/src/main/java/net/minecraft/server/level/ServerChunkCache.java b/src/main/java/net/minecraft/server/level/ServerChunkCache.java
373- index 7b391d6ab84eeaed7bdd27ea70d5e3f9690a0abf..0d380bba07c5c7b6b25fa2ce554418ef8ba9fdb1 100644
373+ index cb57ac51f4acb35710f58ffce2fcc76cc88dd79b..06ddca6290b89ed96b8f9075f5c8b0b5244b9c3f 100644
374374--- a/src/main/java/net/minecraft/server/level/ServerChunkCache.java
375375+++ b/src/main/java/net/minecraft/server/level/ServerChunkCache.java
376376@@ -916,7 +916,18 @@ public class ServerChunkCache extends ChunkSource {
@@ -418,7 +418,7 @@ index b193f8dfbe7b61c919ad5eb452d29885982e25e4..01b9edc8aaf472650f171f1b88229807
418418
419419 // Yes, this doesn't match Vanilla, but it's the best we can do for now.
420420diff --git a/src/main/java/net/minecraft/world/level/NaturalSpawner.java b/src/main/java/net/minecraft/world/level/NaturalSpawner.java
421- index 6f63f471c2c9a3b85c6fc92bdee31a5ff9714ff5..c0fb5d445ed18fbf52df2be754eab0d8fb6e9239 100644
421+ index 6f63f471c2c9a3b85c6fc92bdee31a5ff9714ff5..a9d9c54c7bae0ad681a67106689897a31de49288 100644
422422--- a/src/main/java/net/minecraft/world/level/NaturalSpawner.java
423423+++ b/src/main/java/net/minecraft/world/level/NaturalSpawner.java
424424@@ -65,7 +65,13 @@ public final class NaturalSpawner {
@@ -499,7 +499,7 @@ index 6f63f471c2c9a3b85c6fc92bdee31a5ff9714ff5..c0fb5d445ed18fbf52df2be754eab0d8
499499
500500+ // Paper start - add parameters and int ret type
501501 public static void spawnCategoryForChunk(MobCategory group, ServerLevel world, LevelChunk chunk, NaturalSpawner.SpawnPredicate checker, NaturalSpawner.AfterSpawnCallback runner) {
502- + spawnCategoryForChunk(group, world, chunk, checker, runner);
502+ + spawnCategoryForChunk(group, world, chunk, checker, runner, Integer.MAX_VALUE, null );
503503+ }
504504+ public static int spawnCategoryForChunk(MobCategory group, ServerLevel world, LevelChunk chunk, NaturalSpawner.SpawnPredicate checker, NaturalSpawner.AfterSpawnCallback runner, int maxSpawns, Consumer<Entity> trackEntity) {
505505+ // Paper end - add parameters and int ret type
@@ -519,7 +519,7 @@ index 6f63f471c2c9a3b85c6fc92bdee31a5ff9714ff5..c0fb5d445ed18fbf52df2be754eab0d8
519519
520520+ // Paper start - add maxSpawns parameter and return spawned mobs
521521 public static void spawnCategoryForPosition(MobCategory group, ServerLevel world, ChunkAccess chunk, BlockPos pos, NaturalSpawner.SpawnPredicate checker, NaturalSpawner.AfterSpawnCallback runner) {
522- + spawnCategoryForPosition(group, world,chunk, pos, checker, runner);
522+ + spawnCategoryForPosition(group, world,chunk, pos, checker, runner, Integer.MAX_VALUE, null );
523523+ }
524524+ public static int spawnCategoryForPosition(MobCategory group, ServerLevel world, ChunkAccess chunk, BlockPos pos, NaturalSpawner.SpawnPredicate checker, NaturalSpawner.AfterSpawnCallback runner, int maxSpawns, Consumer<Entity> trackEntity) {
525525+ // Paper end - add maxSpawns parameter and return spawned mobs
0 commit comments