diff --git a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/AbstractDhTintGetter.java b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/AbstractDhTintGetter.java index 18be701a1..655924185 100644 --- a/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/AbstractDhTintGetter.java +++ b/common/src/main/java/com/seibel/distanthorizons/common/wrappers/block/AbstractDhTintGetter.java @@ -129,6 +129,7 @@ public abstract class AbstractDhTintGetter implements BlockAndTintGetter int zMin = mutableBlockPos.getZ() - this.smoothingRadiusInBlocks; int zMax = mutableBlockPos.getZ() + this.smoothingRadiusInBlocks; + int levelMinY = this.clientLevelWrapper.getMinHeight(); for (int x = xMin; x < xMax; x++) { @@ -140,12 +141,13 @@ public abstract class AbstractDhTintGetter implements BlockAndTintGetter // this can return the same position/datapoint for larger LODs duplicating work, // however for small smoothing ranges that isn't a big deal and for large LODs // we ignore smoothing anyway - long dataPoint = this.fullDataSource.getDataPointAtBlockPos(mutableBlockPos); + long dataPoint = this.fullDataSource.getDataPointAtBlockPos(mutableBlockPos.getX(), mutableBlockPos.getY() + levelMinY, mutableBlockPos.getZ()); if (dataPoint == FullDataPointUtil.EMPTY_DATA_POINT) { continue; } + // get the color for this nearby position int id = FullDataPointUtil.getId(dataPoint); BiomeWrapper biomeWrapper = (BiomeWrapper) this.fullDataSource.mapping.getBiomeWrapper(id); diff --git a/coreSubProjects b/coreSubProjects index 42dc0903d..e5e502b4f 160000 --- a/coreSubProjects +++ b/coreSubProjects @@ -1 +1 @@ -Subproject commit 42dc0903ded5d05b0ac50f4ff334d2c701b178c2 +Subproject commit e5e502b4f8fe3161c06c690390335275214e237c