Fixes & improvements

This commit is contained in:
paulevsGitch 2020-11-04 12:10:35 +03:00
parent 3e1dad0694
commit 31331c2007
4 changed files with 3 additions and 2 deletions

View file

@ -37,7 +37,7 @@ public abstract class WallScatterFeature extends DefaultFeature {
mut.setY(py + y);
for (int z = -radius; z <= radius; z++) {
mut.setZ(center.getZ() + z);
if (random.nextInt(8) == 0) {
if (random.nextInt(8) == 0 && world.isAir(mut)) {
shuffle(random);
for (Direction dir: DIR) {
if (canGenerate(world, random, mut, dir)) {