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 2879d42b6..805fd1015 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 @@ -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;