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

This commit is contained in:
mcrcortex
2025-12-28 23:14:59 +10:00
parent df90323fc7
commit 470534831b

View File

@@ -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);
}