From a1729611126bd5358e0786452d271238f535f8ea Mon Sep 17 00:00:00 2001 From: cola98765 Date: Sun, 12 Dec 2021 21:26:40 +0100 Subject: [PATCH] probable fix to a color bug that made no sense --- .../seibel/lod/core/builders/lodBuilding/LodBuilder.java | 6 ++++-- 1 file changed, 4 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 3cfb71973..2879d42b6 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 @@ -270,12 +270,14 @@ public class LodBuilder { yAbs = depth; light = getLightValue(chunk, xAbs,yAbs,zAbs, true, hasSkyLight, true); - color = generateLodColor(chunk, config, xAbs, yAbs, zAbs); + //TODO don't ask me why, but apparently it works + color = generateLodColor(chunk, config, xAbs, yAbs - DEFAULT_DEPTH, zAbs); } else { light = getLightValue(chunk, xAbs, yAbs, zAbs, hasCeiling, hasSkyLight, topBlock); - color = generateLodColor(chunk, config, xAbs, yAbs, zAbs); + //TODO don't ask me why, but apparently it works + color = generateLodColor(chunk, config, xAbs, yAbs - DEFAULT_DEPTH, zAbs); } lightBlock = light & 0b1111; lightSky = (light >> 4) & 0b1111;