diff --git a/src/main/java/com/sk89q/worldedit/EditSession.java b/src/main/java/com/sk89q/worldedit/EditSession.java index db294e957..b01a2522e 100644 --- a/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/src/main/java/com/sk89q/worldedit/EditSession.java @@ -190,12 +190,6 @@ public class EditSession { return false; } - if (mask != null) { - if (!mask.matches(this, pt)) { - return false; - } - } - final int existing = world.getBlockType(pt); // Clear the container block so that it doesn't drop items @@ -259,6 +253,12 @@ public class EditSession { throws MaxChangedBlocksException { BlockVector blockPt = pt.toBlockVector(); + if (mask != null) { + if (!mask.matches(this, blockPt)) { + return false; + } + } + // if (!original.containsKey(blockPt)) { original.put(blockPt, getBlock(pt));