probable fix to a color bug that made no sense

This commit is contained in:
cola98765
2021-12-12 23:47:24 +01:00
parent a172961112
commit 4ece2de991
@@ -63,9 +63,11 @@ public class LodBuilder
private static final IVersionConstants VERSION_CONSTANTS = SingletonHandler.get(IVersionConstants.class);
/** If no blocks are found in the area in determineBottomPointForArea return this */
public static final short DEFAULT_DEPTH = (short) VERSION_CONSTANTS.getMinimumWorldHeight();
public static final short DEFAULT_DEPTH = 0;//(short) VERSION_CONSTANTS.getMinimumWorldHeight();
/** If no blocks are found in the area in determineHeightPointForArea return this */
public static final short DEFAULT_HEIGHT = (short) VERSION_CONSTANTS.getMinimumWorldHeight();
public static final short DEFAULT_HEIGHT = 0;//(short) VERSION_CONSTANTS.getMinimumWorldHeight();
public static final short MIN_WORLD_HEIGHT = (short)VERSION_CONSTANTS.getMinimumWorldHeight();
/** Minecraft's max light value */
public static final short DEFAULT_MAX_LIGHT = 15;
@@ -271,13 +273,13 @@ public class LodBuilder
yAbs = depth;
light = getLightValue(chunk, xAbs,yAbs,zAbs, true, hasSkyLight, true);
//TODO don't ask me why, but apparently it works
color = generateLodColor(chunk, config, xAbs, yAbs - DEFAULT_DEPTH, zAbs);
color = generateLodColor(chunk, config, xAbs, yAbs - MIN_WORLD_HEIGHT, zAbs);
}
else
{
light = getLightValue(chunk, xAbs, yAbs, zAbs, hasCeiling, hasSkyLight, topBlock);
//TODO don't ask me why, but apparently it works
color = generateLodColor(chunk, config, xAbs, yAbs - DEFAULT_DEPTH, zAbs);
color = generateLodColor(chunk, config, xAbs, yAbs - MIN_WORLD_HEIGHT, zAbs);
}
lightBlock = light & 0b1111;
lightSky = (light >> 4) & 0b1111;