Clear chunks from cache when starting a render-task for them

This commit is contained in:
Lukas Rieger (Blue) 2023-05-09 22:09:18 +02:00
parent 8bac85ce22
commit 92e5300c1e
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -91,6 +91,9 @@ private synchronized void init() {
tileSet.add(new Vector2l(x, z));
}
}
// make sure chunk gets re-loaded from disk
map.getWorld().invalidateChunkCache(chunk.getX(), chunk.getY());
}
Predicate<Vector2i> boundsTileFilter = t -> {