correct carving logic

This commit is contained in:
dfsek 2021-12-04 19:39:35 -07:00
parent 1eb515e751
commit edb9b13bd1

View File

@ -83,7 +83,7 @@ public class NoiseChunkGenerator3D implements ChunkGenerator {
BlockState data;
for(int y = world.getMaxHeight() - 1; y >= world.getMinHeight(); y--) {
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,
seed);
chunk.setBlock(x, y, z, data);