diff --git a/src/main/java/com/alpsbte/plotsystem/core/system/plot/generator/AbstractPlotGenerator.java b/src/main/java/com/alpsbte/plotsystem/core/system/plot/generator/AbstractPlotGenerator.java index 5b4ec0cd..a49d235b 100644 --- a/src/main/java/com/alpsbte/plotsystem/core/system/plot/generator/AbstractPlotGenerator.java +++ b/src/main/java/com/alpsbte/plotsystem/core/system/plot/generator/AbstractPlotGenerator.java @@ -259,7 +259,7 @@ public Builder getBuilder() { /** * Pastes the schematic to the plot center in the given world * - * @param pasteMask - sets a mask for the paste operation, can be null + * @param pasteMask - sets a mask for the paste operation, can be null - if the mast is not null, the paste operation ignores air blocks * @param schematicFile - plot/environment schematic file * @param world - world to paste in * @param clearArea - clears the plot area with air before pasting @@ -300,6 +300,7 @@ public static void pasteSchematic(@Nullable Mask pasteMask, byte[] schematicFile Operation clipboardHolder = new ClipboardHolder(clipboard) .createPaste(editSession) .to(BlockVector3.at(world.getPlot().getCenter().x(), pasteY, world.getPlot().getCenter().z())) + .ignoreAirBlocks(pasteMask != null) .build(); Operations.complete(clipboardHolder); }