From 6e3d8395dfda88734b6ebedcab9fcf673ba0e4cc Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Tue, 29 Oct 2013 08:38:16 +0100 Subject: [PATCH] Fixed UnderOverlayMask. --- src/main/java/com/sk89q/worldedit/masks/UnderOverlayMask.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/masks/UnderOverlayMask.java b/src/main/java/com/sk89q/worldedit/masks/UnderOverlayMask.java index f2426e429..c84bbf47e 100644 --- a/src/main/java/com/sk89q/worldedit/masks/UnderOverlayMask.java +++ b/src/main/java/com/sk89q/worldedit/masks/UnderOverlayMask.java @@ -68,7 +68,6 @@ public class UnderOverlayMask implements Mask { @Override public boolean matches(EditSession editSession, Vector pos) { - return mask.matches(editSession, pos.add(0, yMod, 0)); + return !mask.matches(editSession, pos) && mask.matches(editSession, pos.add(0, yMod, 0)); } - }