mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 20:05:02 -04:00
world renderer: view distance change: check for view distance to unload
* This fixes a lot of missing chunks bugs
This commit is contained in:
parent
34f95089b6
commit
947e09e63b
@ -288,7 +288,7 @@ class WorldRenderer(
|
||||
|
||||
val loadedMeshesToRemove: MutableSet<Vec2i> = HashSet()
|
||||
for ((chunkPosition, sections) in loadedMeshes) {
|
||||
if (visibilityGraph.isChunkVisible(chunkPosition)) {
|
||||
if (visibilityGraph.isInViewDistance(chunkPosition)) {
|
||||
continue
|
||||
}
|
||||
loadedMeshesToRemove += chunkPosition
|
||||
|
Loading…
x
Reference in New Issue
Block a user