Intersections, lakes, cleanup

This commit is contained in:
paulevsGitch 2020-10-03 01:24:33 +03:00
parent 8eb15c8d73
commit 81e62efcf6
13 changed files with 77 additions and 33 deletions

View file

@ -79,7 +79,9 @@ public abstract class BlockFeatureSapling extends BlockBaseNotFull implements Fe
@Override
public void grow(ServerWorld world, Random random, BlockPos pos, BlockState state) {
BlocksHelper.setWithoutUpdate(world, pos, Blocks.AIR.getDefaultState());
getFeature().generate(world, world.getChunkManager().getChunkGenerator(), random, pos, null);
if (!getFeature().generate(world, world.getChunkManager().getChunkGenerator(), random, pos, null)) {
BlocksHelper.setWithoutUpdate(world, pos, this.getDefaultState());
}
}
@Override