Add tree blocks config option, fixes #165

This commit is contained in:
Electroblob77
2019-08-18 22:44:09 +01:00
parent 413d21d1d8
commit 93bc9b1b89
5 changed files with 34 additions and 6 deletions
@@ -327,8 +327,7 @@ public abstract class WorldGenSurfaceStructure implements IWorldGenerator {
Block below = world.getBlockState(pos.down()).getBlock();
if(block instanceof BlockLog){
if(below != Blocks.GRASS && below != Blocks.DIRT && !(below instanceof BlockLog) &&
!below.isLeaves(world.getBlockState(pos.down()), world, pos.down())){
if(below != Blocks.GRASS && below != Blocks.DIRT && !WizardryUtilities.isTreeBlock(world, pos.down())){
world.setBlockToAir(pos);
changed = true;
}