Intersections, lakes, cleanup
This commit is contained in:
parent
8eb15c8d73
commit
81e62efcf6
13 changed files with 77 additions and 33 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue