From 13a4505d7dcd5e6fa2be4d0c92619ed73262bcd5 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Fri, 28 Nov 2025 15:54:06 -0600 Subject: [PATCH] Fix biome blending using underground biomes --- .../common/wrappers/block/AbstractDhTintGetter.java | 6 +++--- coreSubProjects | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 cb7a334ac..1d7ccb579 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 @@ -124,10 +124,10 @@ public abstract class AbstractDhTintGetter implements BlockAndTintGetter int rollingBlue = 0; int xMin = mutableBlockPos.getX() - this.smoothingRadiusInBlocks; - int xMax = mutableBlockPos.getX() + this.smoothingRadiusInBlocks; + int xMax = mutableBlockPos.getX() + this.smoothingRadiusInBlocks + 1; // +1 to account for the center block int zMin = mutableBlockPos.getZ() - this.smoothingRadiusInBlocks; - int zMax = mutableBlockPos.getZ() + this.smoothingRadiusInBlocks; + int zMax = mutableBlockPos.getZ() + this.smoothingRadiusInBlocks + 1; int levelMinY = this.clientLevelWrapper.getMinHeight(); @@ -141,7 +141,7 @@ 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.getX(), mutableBlockPos.getY(), mutableBlockPos.getZ()); + long dataPoint = this.fullDataSource.getDataPointAtBlockPos(mutableBlockPos.getX(), mutableBlockPos.getY(), mutableBlockPos.getZ(), levelMinY); if (dataPoint == FullDataPointUtil.EMPTY_DATA_POINT) { continue; diff --git a/coreSubProjects b/coreSubProjects index 7e46adf46..227d0d09b 160000 --- a/coreSubProjects +++ b/coreSubProjects @@ -1 +1 @@ -Subproject commit 7e46adf46938642c9f6f9cf7dd741246a2e32e55 +Subproject commit 227d0d09ba34ef486c41c3dca3f0751077a3e781