Water plants drop fix

This commit is contained in:
paulevsGitch 2021-02-28 16:24:08 +03:00
parent 616c824257
commit 8e5996524d
3 changed files with 1 additions and 2 deletions

View file

@ -88,6 +88,7 @@ public class UnderwaterPlantBlock extends BlockBaseNotFull implements IRenderTyp
@Override
public BlockState getStateForNeighborUpdate(BlockState state, Direction facing, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos) {
if (!canPlaceAt(state, world, pos)) {
world.breakBlock(pos, true);
return Blocks.WATER.getDefaultState();
}
else {