mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +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);
|
IBlockState plant = plantable.getPlant(this.world, pos);
|
||||||
if (!plant.getBlock().canPlaceBlockAt(this.world, pos))
|
if (!plant.getBlock().canPlaceBlockAt(this.world, pos))
|
||||||
return false;
|
return false;
|
||||||
|
IBlockState state = this.world.getBlockState(pos);
|
||||||
|
if (!state.getBlock().isAir(state, this.world, pos))
|
||||||
|
return false;
|
||||||
this.world.setBlockState(pos, plant);
|
this.world.setBlockState(pos, plant);
|
||||||
} else
|
} else
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue