mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
use biome y-level for palette in NoiseChunkGenerator3D
This commit is contained in:
+5
-3
@@ -73,15 +73,17 @@ public class NoiseChunkGenerator3D implements ChunkGenerator {
|
|||||||
int cx = xOrig + x;
|
int cx = xOrig + x;
|
||||||
int cz = zOrig + z;
|
int cz = zOrig + z;
|
||||||
|
|
||||||
Biome biome = biomeProvider.getBiome(cx, 0, cz, seed);
|
|
||||||
|
|
||||||
|
BlockState data;
|
||||||
|
for(int y = world.getMaxHeight() - 1; y >= world.getMinHeight(); y--) {
|
||||||
|
Biome biome = biomeProvider.getBiome(cx, y, cz, seed);
|
||||||
|
|
||||||
PaletteInfo paletteInfo = biome.getContext().get(PaletteInfo.class);
|
PaletteInfo paletteInfo = biome.getContext().get(PaletteInfo.class);
|
||||||
|
|
||||||
int sea = paletteInfo.seaLevel();
|
int sea = paletteInfo.seaLevel();
|
||||||
Palette seaPalette = paletteInfo.ocean();
|
Palette seaPalette = paletteInfo.ocean();
|
||||||
|
|
||||||
BlockState data;
|
|
||||||
for(int y = world.getMaxHeight() - 1; y >= world.getMinHeight(); y--) {
|
|
||||||
if(sampler.sample(x, y, z) > 0) {
|
if(sampler.sample(x, y, z) > 0) {
|
||||||
if(carver.sample(x, y, z) <= 0) {
|
if(carver.sample(x, y, z) <= 0) {
|
||||||
data = PaletteUtil.getPalette(x, y, z, sampler, paletteInfo, paletteLevel).get(paletteLevel, cx, y, cz,
|
data = PaletteUtil.getPalette(x, y, z, sampler, paletteInfo, paletteLevel).get(paletteLevel, cx, y, cz,
|
||||||
|
|||||||
Reference in New Issue
Block a user