Natura

Natura

55M Downloads

Natura trees don't generate correctly on different ground types.

temp1011 opened this issue ยท 0 comments

commented

Minecraft: 1.12
Forge: 14.23.2.2624
Mantle: 1.3.1.21
Natura: 1.12.2-4.3.2.42
Natura trees will grow underneath different blocks to dirt and grass if planted on a different soil. For example, using forestry humus:
for example

Looks like some kind of Material.GROUND check is needed when generating eg-

if (!world.getBlockState(pos).isFullBlock() && (blockDown == Blocks.GRASS || blockDown == Blocks.DIRT))
has problems but
boolean isSoil = (soil != null && soil.canSustainPlant(state, worldIn, position.down(), EnumFacing.UP, NaturaOverworld.overworldSapling));
is fine I think.