Sapling, fixes

This commit is contained in:
paulevsGitch 2020-12-26 19:10:54 +03:00
parent e103e551e3
commit 1065d770bb
6 changed files with 44 additions and 2 deletions

View file

@ -21,6 +21,9 @@ public class SingleInvertedScatterFeature extends InvertedScatterFeature {
@Override
public boolean canGenerate(StructureWorldAccess world, Random random, BlockPos center, BlockPos blockPos, float radius) {
if (!world.isAir(blockPos)) {
return false;
}
BlockState state = block.getDefaultState();
if (block instanceof BlockAttached) {
state = state.with(Properties.FACING, Direction.DOWN);