world renderer: fix some chunks not get rendered magically

This commit is contained in:
Bixilon 2022-05-05 00:02:22 +02:00
parent f4c707aae0
commit 6cff8c6278
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -496,7 +496,7 @@ class WorldRenderer(
culledQueue[item.chunkPosition]?.let { culledQueue[item.chunkPosition]?.let {
it.remove(item.sectionHeight) it.remove(item.sectionHeight)
if (it.isEmpty()) { if (it.isEmpty()) {
loadedMeshes -= item.chunkPosition culledQueue -= item.chunkPosition
} }
} }