The Twilight Forest

The Twilight Forest

143M Downloads

Plants Plantability

Killer-Demon opened this issue ยท 1 comments

commented

The following blocks can be planted on any block, but will disappear after a couple of seconds.

  • Mayapple
  • Clover Patch
  • Fiddlehead
  • Forest Grass
  • Dry Bush

Fiddlehead is the only one that drops itself afterwards, see issue: #192

Perhaps having them be plantable on any block could be a feature instead of a bug for aesthetic reason.

commented

Most likely caused by this:

/*
Comment from superclass:
Forge: This function is called during world gen and placement, before this block is set, so if we are not 'here' then assume it's the pre-check.
Therefore, we just take the OR of all the conditions below as the most general "can block stay" check
*/
if (state.getBlock() != this) {
return BlockTFPlant.canPlaceRootAt(world, pos)
|| soil.getBlock().canSustainPlant(soil, world, pos.down(), EnumFacing.UP, this)
|| soil.isSideSolid(world, pos, EnumFacing.UP)
|| ((world.getLight(pos) >= 3 || world.canSeeSky(pos)) && soil.getBlock().canSustainPlant(soil, world, pos.down(), EnumFacing.UP, this));
} else {

Will probably resolve itself when the block gets "flattened" (#358).