Improved block fixer

This commit is contained in:
paulevsGitch 2020-11-19 18:56:02 +03:00
parent 44dd1c35a9
commit 85bcf5878e
3 changed files with 29 additions and 43 deletions

View file

@ -19,7 +19,7 @@ public class UnderwaterPlantFeature extends UnderwaterPlantScatter {
@Override
public boolean canGenerate(StructureWorldAccess world, Random random, BlockPos center, BlockPos blockPos, float radius) {
return plant.canPlaceAt(plant.getDefaultState(), world, blockPos);
return super.canSpawn(world, blockPos) && plant.canPlaceAt(plant.getDefaultState(), world, blockPos);
}
@Override