fix light update not getting properly set

This commit is contained in:
Bixilon 2022-09-18 19:56:17 +02:00
parent 8f8a6dc1f9
commit 05a0e335b0
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -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()