From 05a0e335b09b33d8a51614e1713644d0e7248182 Mon Sep 17 00:00:00 2001 From: Bixilon Date: Sun, 18 Sep 2022 19:56:17 +0200 Subject: [PATCH] fix light update not getting properly set --- .../de/bixilon/minosoft/data/world/chunk/light/SectionLight.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/bixilon/minosoft/data/world/chunk/light/SectionLight.kt b/src/main/java/de/bixilon/minosoft/data/world/chunk/light/SectionLight.kt index 7a374c728..5ae837930 100644 --- a/src/main/java/de/bixilon/minosoft/data/world/chunk/light/SectionLight.kt +++ b/src/main/java/de/bixilon/minosoft/data/world/chunk/light/SectionLight.kt @@ -179,6 +179,7 @@ class SectionLight( } fun resetLight() { + update = true for (index in light.indices) { light[index] = 0x00.toByte() } @@ -192,6 +193,7 @@ class SectionLight( } fun calculate() { + update = true val blocks = section.blocks blocks.acquire()