Sapling, fixes

This commit is contained in:
paulevsGitch 2020-12-26 19:10:54 +03:00
parent e103e551e3
commit 1065d770bb
6 changed files with 44 additions and 2 deletions

View file

@ -21,6 +21,9 @@ public class SingleInvertedScatterFeature extends InvertedScatterFeature {
@Override
public boolean canGenerate(StructureWorldAccess world, Random random, BlockPos center, BlockPos blockPos, float radius) {
if (!world.isAir(blockPos)) {
return false;
}
BlockState state = block.getDefaultState();
if (block instanceof BlockAttached) {
state = state.with(Properties.FACING, Direction.DOWN);

View file

@ -36,7 +36,6 @@ public class JellyshroomFeature extends DefaultFeature {
public boolean generate(StructureWorldAccess world, ChunkGenerator chunkGenerator, Random random, BlockPos pos, DefaultFeatureConfig config) {
if (!world.getBlockState(pos.down()).getBlock().isIn(EndTags.END_GROUND)) return false;
BlockState log = EndBlocks.JELLYSHROOM.log.getDefaultState();
BlockState bark = EndBlocks.JELLYSHROOM.bark.getDefaultState();
BlockState membrane = EndBlocks.JELLYSHROOM_CAP_PURPLE.getDefaultState();