memory leaks are joever

This commit is contained in:
Leijurv
2023-06-29 21:59:31 -07:00
parent 15f4253b3d
commit 8211ae4af5
2 changed files with 10 additions and 0 deletions

View File

@@ -307,6 +307,9 @@ public final class CachedWorld implements ICachedWorld, Helper {
try {
ChunkPos pos = toPackQueue.take();
Chunk chunk = toPackMap.remove(pos);
if (toPackQueue.size() > Baritone.settings().chunkPackerQueueMaxSize.value) {
continue;
}
CachedChunk cached = ChunkPacker.pack(chunk);
CachedWorld.this.updateCachedChunk(cached);
//System.out.println("Processed chunk at " + chunk.x + "," + chunk.z);