Skip to content

Commit 92e5300

Browse files
committed
Clear chunks from cache when starting a render-task for them
1 parent 8bac85c commit 92e5300

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

BlueMapCommon/src/main/java/de/bluecolored/bluemap/common/rendermanager/WorldRegionRenderTask.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ private synchronized void init() {
9191
tileSet.add(new Vector2l(x, z));
9292
}
9393
}
94+
95+
// make sure chunk gets re-loaded from disk
96+
map.getWorld().invalidateChunkCache(chunk.getX(), chunk.getY());
9497
}
9598

9699
Predicate<Vector2i> boundsTileFilter = t -> {

0 commit comments

Comments
 (0)