mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
fix light update not getting properly set
This commit is contained in:
parent
8f8a6dc1f9
commit
05a0e335b0
@ -179,6 +179,7 @@ class SectionLight(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun resetLight() {
|
fun resetLight() {
|
||||||
|
update = true
|
||||||
for (index in light.indices) {
|
for (index in light.indices) {
|
||||||
light[index] = 0x00.toByte()
|
light[index] = 0x00.toByte()
|
||||||
}
|
}
|
||||||
@ -192,6 +193,7 @@ class SectionLight(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun calculate() {
|
fun calculate() {
|
||||||
|
update = true
|
||||||
val blocks = section.blocks
|
val blocks = section.blocks
|
||||||
|
|
||||||
blocks.acquire()
|
blocks.acquire()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user