attempt improve lighting thing

This commit is contained in:
mcrcortex
2025-06-23 23:22:48 +10:00
parent edb15db8fa
commit 64d4ef0c03

View File

@@ -103,19 +103,22 @@ public class VoxelIngestService {
//if (section.isEmpty()) continue;
var pos = ChunkSectionPos.from(chunk.getPos(), i);
var bl = blp.getLightSection(pos);
boolean blNull = bl == null;
if (!(bl == null || bl.isUninitialized())) {
bl = bl.copy();
} else {
bl = null;
}
var sl = slp.getLightSection(pos);
boolean slNull = sl == null;
if (!(sl == null || sl.isUninitialized())) {
sl = sl.copy();
} else {
sl = null;
}
if ((bl == null && sl == null) && section.isEmpty()) {
//If its null for either, assume failure to obtain lighting and ignore section
if (blNull || slNull) {
continue;
}