fixed the placer placing seeds in water

This commit is contained in:
Ellpeck 2019-02-02 14:47:21 +01:00
parent a3575eb63a
commit 0d468c0fb3

View file

@ -130,6 +130,9 @@ public class TileEntityPlacer extends TileEntityImpl implements ITickable {
IBlockState plant = plantable.getPlant(this.world, pos);
if (!plant.getBlock().canPlaceBlockAt(this.world, pos))
return false;
IBlockState state = this.world.getBlockState(pos);
if (!state.getBlock().isAir(state, this.world, pos))
return false;
this.world.setBlockState(pos, plant);
} else
return false;