Biome features rebalance

This commit is contained in:
paulevsGitch 2020-11-04 18:20:59 +03:00
parent a9174260be
commit c3a7a59d78
8 changed files with 11 additions and 12 deletions

View file

@ -28,6 +28,9 @@ public abstract class WallScatterFeature extends DefaultFeature {
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos center, DefaultFeatureConfig featureConfig) {
int maxY = world.getTopY(Heightmap.Type.WORLD_SURFACE, center.getX(), center.getZ());
int minY = BlocksHelper.upRay(world, new BlockPos(center.getX(), 0, center.getZ()), maxY);
if (maxY < 10 || maxY < minY) {
return false;
}
int py = MHelper.randRange(minY, maxY, random);
Mutable mut = new Mutable();