fix possible rendering crash

This commit is contained in:
Bixilon 2021-05-03 14:33:49 +02:00
parent 6bb865867e
commit d715c173f9
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -184,6 +184,7 @@ class WorldRenderer(
override fun draw() {
shader.use()
val visibleChunks = visibleChunks.toSynchronizedMap()
for ((_, map) in visibleChunks) {
for ((_, mesh) in map) {