mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 11:24:56 -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? {
|
operator fun set(x: Int, y: Int, z: Int, block: BlockState?): BlockState? {
|
||||||
blocks.lock()
|
val previous = blocks.set(x, y, z, block)
|
||||||
val previous = unsafeSet(x, y, z, block)
|
|
||||||
blocks.unlock()
|
|
||||||
|
|
||||||
|
light.onBlockChange(x, y, z, previous, block)
|
||||||
return previous
|
return previous
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user