From 64e73b7d83b61213f1c206ff860a0f83d533e978 Mon Sep 17 00:00:00 2001 From: cola98765 Date: Sat, 25 Dec 2021 13:19:01 +0100 Subject: [PATCH] fixed light requiring Y offset --- .../com/seibel/lod/core/builders/lodBuilding/LodBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/seibel/lod/core/builders/lodBuilding/LodBuilder.java b/src/main/java/com/seibel/lod/core/builders/lodBuilding/LodBuilder.java index 80913a501..86dfc74b5 100644 --- a/src/main/java/com/seibel/lod/core/builders/lodBuilding/LodBuilder.java +++ b/src/main/java/com/seibel/lod/core/builders/lodBuilding/LodBuilder.java @@ -267,12 +267,12 @@ public class LodBuilder if (hasCeiling && topBlock) { yAbs = depth; - light = getLightValue(chunk, xAbs,yAbs,zAbs, true, hasSkyLight, true); + light = getLightValue(chunk, xAbs,yAbs + MIN_WORLD_HEIGHT, zAbs, true, hasSkyLight, true); color = generateLodColor(chunk, config, xAbs, yAbs, zAbs); } else { - light = getLightValue(chunk, xAbs, yAbs, zAbs, hasCeiling, hasSkyLight, topBlock); + light = getLightValue(chunk, xAbs, yAbs + MIN_WORLD_HEIGHT, zAbs, hasCeiling, hasSkyLight, topBlock); color = generateLodColor(chunk, config, xAbs, yAbs, zAbs); } lightBlock = light & 0b1111;