mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Fix accumulated total ticking chunks not being updated
This commit is contained in:
parent
c0ac50971d
commit
deba816f30
1 changed files with 6 additions and 0 deletions
|
@ -1182,6 +1182,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
public static void onChunkTicking(final LevelChunk chunk, final ChunkHolder holder) {
|
||||
chunk.level.getChunkSource().tickingChunks.add(chunk);
|
||||
+ chunk.chunkStatus = net.minecraft.server.level.FullChunkStatus.BLOCK_TICKING;
|
||||
+ chunk.level.chunkSource.chunkMap.tickingGenerated.incrementAndGet();
|
||||
}
|
||||
|
||||
public static void onChunkNotTicking(final LevelChunk chunk, final ChunkHolder holder) {
|
||||
|
@ -16568,6 +16569,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
public final ChunkProgressListener progressListener;
|
||||
private final ChunkStatusUpdateListener chunkStatusListener;
|
||||
public final ChunkMap.ChunkDistanceManager distanceManager;
|
||||
- private final AtomicInteger tickingGenerated;
|
||||
+ public final AtomicInteger tickingGenerated; // Paper - public
|
||||
private final String storageName;
|
||||
private final PlayerMap playerMap;
|
||||
public final Int2ObjectMap<ChunkMap.TrackedEntity> entityMap;
|
||||
@@ -0,0 +0,0 @@ public class ChunkMap extends ChunkStorage implements ChunkHolder.PlayerProvider
|
||||
private final Long2LongMap chunkSaveCooldowns;
|
||||
private final Queue<Runnable> unloadQueue;
|
||||
|
|
Loading…
Reference in a new issue