mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-03 08:25:31 +00:00
use base biome in ElevationInterpolator
This commit is contained in:
parent
8126f3c2be
commit
2da54b9843
@ -23,8 +23,14 @@ public class ElevationInterpolator {
|
|||||||
// Precompute generators.
|
// Precompute generators.
|
||||||
for(int x = -1 - smooth; x <= 16 + smooth; x++) {
|
for(int x = -1 - smooth; x <= 16 + smooth; x++) {
|
||||||
for(int z = -1 - smooth; z <= 16 + smooth; z++) {
|
for(int z = -1 - smooth; z <= 16 + smooth; z++) {
|
||||||
gens[x + 1 + smooth][z + 1 + smooth] = provider.getBiome(xOrigin + x, 0, zOrigin + z, seed).getContext().get(
|
int bx = xOrigin + x;
|
||||||
BiomeNoiseProperties.class);
|
int bz = zOrigin + z;
|
||||||
|
gens[x + 1 + smooth][z + 1 + smooth] =
|
||||||
|
provider
|
||||||
|
.getBaseBiome(bx, bz, seed)
|
||||||
|
.orElseGet(() -> provider.getBiome(bx, 0, bz, seed)) // kind of a hack
|
||||||
|
.getContext()
|
||||||
|
.get(BiomeNoiseProperties.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user