diff --git a/src/main/java/com/sk89q/worldedit/generator/GardenPatchGenerator.java b/src/main/java/com/sk89q/worldedit/generator/GardenPatchGenerator.java index 61c57e86e..873495ceb 100644 --- a/src/main/java/com/sk89q/worldedit/generator/GardenPatchGenerator.java +++ b/src/main/java/com/sk89q/worldedit/generator/GardenPatchGenerator.java @@ -163,6 +163,10 @@ public class GardenPatchGenerator implements RegionFunction { position = position.add(0, 1, 0); } + if (editSession.getBlock(position.add(0, -1, 0)).getType() != BlockID.GRASS) { + return false; + } + BaseBlock leavesBlock = new BaseBlock(BlockID.LEAVES); editSession.setBlockIfAir(position, leavesBlock);