probable fix to a color bug that made no sense

This commit is contained in:
cola98765
2021-12-12 21:26:40 +01:00
parent 9e882951ef
commit a172961112
@@ -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;