mapping updates

This commit is contained in:
gnembon committed 2020-05-04 00:09:22 -03:00
1 parent cdb79f9768
commit b16991d84b
8 files changed
+64 -59

No files matched your search

@@ -41,12 +41,12 @@ public abstract class ServerChunkManagerMixin implements ServerChunkManagerInter
@Redirect(method = "tickChunks", at = @At(
value = "INVOKE",
target = "Lnet/minecraft/server/world/ChunkTicketManager;getLevelCount()I"
target = "Lnet/minecraft/server/world/ChunkTicketManager;getSpawningChunkCount()I"
))
//this runs once per world spawning cycle. Allows to grab mob counts and count spawn ticks
private int setupTracking(ChunkTicketManager chunkTicketManager)
{
int j = chunkTicketManager.getLevelCount();
int j = chunkTicketManager.getSpawningChunkCount();
DimensionType dim = this.world.dimension.getType();
//((WorldInterface)world).getPrecookedMobs().clear(); not needed because mobs are compared with predefined BBs
SpawnReporter.chunkCounts.put(dim, j);