Fix biome blending gridlines
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
+1
-1
Submodule coreSubProjects updated: 42dc0903de...e5e502b4f8
Reference in New Issue
Block a user