From 470534831bcfa2e5944c84a7bebd4917f6d2fb98 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sun, 28 Dec 2025 23:14:59 +1000 Subject: [PATCH] Set the default sky light to 15, this is done in the tracker on an empty return result since it should be a free operation change --- .../me/cortex/voxy/common/world/ActiveSectionTracker.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/cortex/voxy/common/world/ActiveSectionTracker.java b/src/main/java/me/cortex/voxy/common/world/ActiveSectionTracker.java index 378986fe..64ccb0e9 100644 --- a/src/main/java/me/cortex/voxy/common/world/ActiveSectionTracker.java +++ b/src/main/java/me/cortex/voxy/common/world/ActiveSectionTracker.java @@ -3,6 +3,7 @@ package me.cortex.voxy.common.world; import it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap; import it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap; import me.cortex.voxy.common.Logger; +import me.cortex.voxy.common.world.other.Mapper; import org.jetbrains.annotations.Nullable; import java.lang.invoke.MethodHandles; @@ -155,7 +156,9 @@ public class ActiveSectionTracker { //TODO: REWRITE THE section tracker _again_ to not be so shit and jank, and so that Arrays.fill is not 10% of the execution time if (status == 1) { //We need to set the data to air as it is undefined state - Arrays.fill(section.data, 0); + int sky = 15; + int block = 0; + Arrays.fill(section.data, Mapper.composeMappingId((byte) (sky|(block<<4)),0,0)); } section.acquire(1); }