diff --git a/src/main/java/ellpeck/actuallyadditions/event/WorldDecorationEvent.java b/src/main/java/ellpeck/actuallyadditions/event/WorldDecorationEvent.java index 702ec9b48..20c7b7ea6 100644 --- a/src/main/java/ellpeck/actuallyadditions/event/WorldDecorationEvent.java +++ b/src/main/java/ellpeck/actuallyadditions/event/WorldDecorationEvent.java @@ -86,8 +86,11 @@ public class WorldDecorationEvent{ int genZ = event.chunkZ+event.rand.nextInt(16)+8; int genY = event.world.getTopSolidOrLiquidBlock(genX, genZ)-1; - if(event.world.getBlock(genX, genY, genZ).getMaterial() == blockBelow && plant.canBlockStay(event.world, genX, genY+1, genZ)){ + if(event.world.getBlock(genX, genY, genZ).getMaterial() == blockBelow){ event.world.setBlock(genX, genY+1, genZ, plant, meta, 2); + if(!plant.canBlockStay(event.world, genX, genY+1, genZ)){ + event.world.setBlockToAir(genX, genY+1, genZ); + } } } }