mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-23 17:09:26 +00:00
Fix async mob spawning crash (#112)
This commit is contained in:
@@ -6,7 +6,7 @@ Subject: [PATCH] Skip unnecessary mob spawning computations
|
||||
This patch is Powered by Gale(https://github.com/GaleMC/Gale)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/level/ServerChunkCache.java b/src/main/java/net/minecraft/server/level/ServerChunkCache.java
|
||||
index 5942626173e68d80a2e93d7221f2f470f07f022b..e3760154b7d3aabb9d63a06f11e4dca0743bb03f 100644
|
||||
index 5942626173e68d80a2e93d7221f2f470f07f022b..82234b5a0288438cc1a0b8ca59c9a8e4e1a845b4 100644
|
||||
--- a/src/main/java/net/minecraft/server/level/ServerChunkCache.java
|
||||
+++ b/src/main/java/net/minecraft/server/level/ServerChunkCache.java
|
||||
@@ -566,50 +566,57 @@ public class ServerChunkCache extends ChunkSource {
|
||||
@@ -80,7 +80,7 @@ index 5942626173e68d80a2e93d7221f2f470f07f022b..e3760154b7d3aabb9d63a06f11e4dca0
|
||||
- lastSpawnState = NaturalSpawner.createState(l, this.level.getAllEntities(), this::getFullChunk, this.chunkMap.playerMobDistanceMap == null ? new LocalMobCapCalculator(this.chunkMap) : null, false);
|
||||
- spawnCountsReady.set(true);
|
||||
- // Leaves end - optimize mob spawning
|
||||
+ lastSpawnState = null;
|
||||
+ spawnercreature_d = null;
|
||||
}
|
||||
- // Paper end
|
||||
- this.level.timings.countNaturalMobs.stopTiming(); // Paper - timings
|
||||
|
||||
Reference in New Issue
Block a user