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

@ -29,7 +29,7 @@ public abstract class UnderwaterPlantScatter extends ScatterFeature {
@Override
protected boolean canSpawn(StructureWorldAccess world, BlockPos pos) {
return !world.getFluidState(pos).isEmpty();
return world.getBlockState(pos).isOf(Blocks.WATER);
}
@Override