diff --git a/src/main/java/net/minecraft/world/World.java b/src/main/java/net/minecraft/world/World.java index 489a643..2c4ff79 100644 --- a/src/main/java/net/minecraft/world/World.java +++ b/src/main/java/net/minecraft/world/World.java @@ -4170,7 +4170,7 @@ public static final int MAX_BLOCK_COORD = 500000;//524288; private final ServerLoadBalancer balancer = new ServerLoadBalancer(this); private final WorldEventProxy eventProxy = FMLCommonHandler.instance().getSide().isServer() && this instanceof WorldServer ? new ServerWorldEventProxy((WorldServer)this) : new WorldEventProxy(); - private final WorldChunkProfiler chunkProfiler; + protected final WorldChunkProfiler chunkProfiler; public Chunk getChunkIfExists(int cx, int cz) { diff --git a/src/main/java/net/minecraft/world/WorldServer.java b/src/main/java/net/minecraft/world/WorldServer.java index e49aef6..de884f1 100644 --- a/src/main/java/net/minecraft/world/WorldServer.java +++ b/src/main/java/net/minecraft/world/WorldServer.java @@ -338,6 +338,7 @@ this.theProfiler.startSection("getChunk"); Chunk chunk = this.getChunkFromChunkCoords(chunkX, chunkZ); chunk.setActive(); + chunkProfiler.startChunk(chunkCoord); this.theProfiler.endStartSection("updatePending"); this.updatePendingOf(chunk); this.func_147467_a(k, l, chunk); @@ -428,6 +429,7 @@ } getEventProxy().popState(); + chunkProfiler.endChunk(); this.theProfiler.endSection(); } }