mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-16 10:55:01 -04:00
fix dead lock when placing block
This commit is contained in:
parent
5a695919e4
commit
04924cd8de
@ -94,10 +94,9 @@ class ChunkSection(
|
||||
|
||||
|
||||
operator fun set(x: Int, y: Int, z: Int, block: BlockState?): BlockState? {
|
||||
blocks.lock()
|
||||
val previous = unsafeSet(x, y, z, block)
|
||||
blocks.unlock()
|
||||
val previous = blocks.set(x, y, z, block)
|
||||
|
||||
light.onBlockChange(x, y, z, previous, block)
|
||||
return previous
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user