mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
correct carving logic
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ public class NoiseChunkGenerator3D implements ChunkGenerator {
|
|||||||
BlockState data;
|
BlockState data;
|
||||||
for(int y = world.getMaxHeight() - 1; y >= world.getMinHeight(); y--) {
|
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(properties.carving().noise(seed, cx, y, cz) < 0) {
|
if(properties.carving().noise(seed, cx, y, cz) <= 0) {
|
||||||
data = PaletteUtil.getPalette(x, y, z, sampler, paletteInfo).get(paletteLevel, cx, y, cz,
|
data = PaletteUtil.getPalette(x, y, z, sampler, paletteInfo).get(paletteLevel, cx, y, cz,
|
||||||
seed);
|
seed);
|
||||||
chunk.setBlock(x, y, z, data);
|
chunk.setBlock(x, y, z, data);
|
||||||
|
|||||||
Reference in New Issue
Block a user