mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
fixed the placer placing seeds in water
This commit is contained in:
parent
a3575eb63a
commit
0d468c0fb3
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue