Skip to content

Commit

Permalink
Reduce the blockiness of end biomes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Jan 14, 2024
1 parent 07eab88 commit 47142eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,19 @@ public void onGetNoiseBiome(int x, int y, int z, Climate.Sampler sampler, Callba
}
else
{
int densityX = (SectionPos.blockToSectionCoord(blockX) * 2 + 1) * 8;
int densityZ = (SectionPos.blockToSectionCoord(blockZ) * 2 + 1) * 8;
double heightNoise = sampler.erosion().compute(new DensityFunction.SinglePointContext(densityX, blockY, densityZ));
double heightNoise = sampler.erosion().compute(new DensityFunction.SinglePointContext(blockX, blockY, blockZ));

if (heightNoise > 0.25)
{
cir.setReturnValue(this.getBiomeHolder(this.highlandsArea.get(densityX, densityZ)));
cir.setReturnValue(this.getBiomeHolder(this.highlandsArea.get(x, z)));
}
else if (heightNoise >= -0.0625)
{
cir.setReturnValue(this.getBiomeHolder(this.midlandsArea.get(densityX, densityZ)));
cir.setReturnValue(this.getBiomeHolder(this.midlandsArea.get(x, z)));
}
else
{
cir.setReturnValue(heightNoise < -0.21875 ? this.getBiomeHolder(this.islandsArea.get(densityX, densityZ)) : this.getBiomeHolder(this.edgeArea.get(densityX, densityZ)));
cir.setReturnValue(heightNoise < -0.21875 ? this.getBiomeHolder(this.islandsArea.get(x, z)) : this.getBiomeHolder(this.edgeArea.get(x, z)));
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions NeoForge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ logoFile="tb_logo.png"

[[dependencies.terrablender]]
modId="neoforge"
mandatory=true
versionRange="[20.2,)"
required=true
versionRange="[20.4,)"
ordering="NONE"
side="BOTH"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ common_server_run_name=Common Server
forge_version=49.0.3

# NeoForge
neoforge_version=20.4.3-beta
neoforge_version=20.4.75-beta

# Fabric
fabric_version=0.91.1+1.20.4
Expand Down

0 comments on commit 47142eb

Please sign in to comment.