From 0d468c0fb3b74577107c1b5f80df6fddd029b549 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 2 Feb 2019 14:47:21 +0100 Subject: [PATCH] fixed the placer placing seeds in water --- .../de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java index 7de7438e..7b2f5d79 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityPlacer.java @@ -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;