implement air threshold in beardifier

This commit is contained in:
dfsek 2022-06-05 19:28:08 -07:00
parent fbbf09a937
commit 3adcdb4019

View File

@ -153,7 +153,7 @@ public class FabricChunkGeneratorWrapper extends net.minecraft.world.gen.chunk.C
.getPalette(x + xi, y, z + zi, world, biomeProvider) .getPalette(x + xi, y, z + zi, world, biomeProvider)
.get(depth, x + xi, y, z + zi, world.getSeed()), false); .get(depth, x + xi, y, z + zi, world.getSeed()), false);
depth++; depth++;
} else if(noise > 0 && noise < airThreshold) { } else if(noise < airThreshold) {
chunk.setBlockState(new BlockPos(x, y, z), Blocks.AIR.getDefaultState(), false); chunk.setBlockState(new BlockPos(x, y, z), Blocks.AIR.getDefaultState(), false);
} else { } else {
depth = 0; depth = 0;