Improved block fixer
This commit is contained in:
parent
44dd1c35a9
commit
85bcf5878e
3 changed files with 29 additions and 43 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue