mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-23 04:28:55 -04:00
world renderer: fix wrong queue locking
This commit is contained in:
parent
e7034c395e
commit
d8133b0bfa
@ -802,7 +802,7 @@ class WorldRenderer(
|
||||
workQueue()
|
||||
}
|
||||
|
||||
culledQueueLock.acquire()
|
||||
culledQueueLock.lock()
|
||||
queueLock.acquire()
|
||||
for ((chunkPosition, sectionHeights) in queue) {
|
||||
val originalSectionHeight = this.culledQueue[chunkPosition] ?: continue
|
||||
@ -812,7 +812,7 @@ class WorldRenderer(
|
||||
}
|
||||
}
|
||||
queueLock.release()
|
||||
culledQueueLock.release()
|
||||
culledQueueLock.unlock()
|
||||
|
||||
visible.sort()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user