Realistic Terrain Generation

Realistic Terrain Generation

3M Downloads

Trees not replacing tallgrass blocks

whichonespink44 opened this issue ยท 2 comments

commented

Either trees aren't replacing tallgrass blocks, or the tallgrass is replacing log blocks. 99.99% certain it's the former but need to investigate to be certain.

It'll most likely be one of these methods:

https://github.com/Team-RTG/Realistic-Terrain-Generation/blob/1.10.2-dev/src/main/java/rtg/world/gen/feature/tree/rtg/TreeRTG.java#L185-L211

commented

But then I eventually said...

    @Override
    protected boolean canGrowInto(Block blockType)
    {
        Material material = blockType.getDefaultState().getMaterial();

        return material == Material.AIR
            || material == Material.LEAVES
            || material == Material.PLANTS
            || material == Material.GRASS
            || material == Material.GROUND
            || material == Material.WOOD
            || material == Material.VINE
            || material == Material.SNOW;
    }