From fb16897b5cbafc1a71d10160db63aef5c59390df Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 30 Mar 2014 10:26:10 -0700 Subject: [PATCH] Fixed BlockMask, MaskIntersection not using this. --- .../java/com/sk89q/worldedit/function/mask/BlockMask.java | 4 ++-- .../com/sk89q/worldedit/function/mask/MaskIntersection.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/function/mask/BlockMask.java b/src/main/java/com/sk89q/worldedit/function/mask/BlockMask.java index 1ea91cd46..4228b0deb 100644 --- a/src/main/java/com/sk89q/worldedit/function/mask/BlockMask.java +++ b/src/main/java/com/sk89q/worldedit/function/mask/BlockMask.java @@ -50,7 +50,7 @@ public class BlockMask extends AbstractExtentMask { public BlockMask(Extent extent, Collection blocks) { super(extent); checkNotNull(blocks); - blocks.addAll(blocks); + this.blocks.addAll(blocks); } /** @@ -70,7 +70,7 @@ public class BlockMask extends AbstractExtentMask { */ public void add(Collection blocks) { checkNotNull(blocks); - blocks.addAll(blocks); + this.blocks.addAll(blocks); } /** diff --git a/src/main/java/com/sk89q/worldedit/function/mask/MaskIntersection.java b/src/main/java/com/sk89q/worldedit/function/mask/MaskIntersection.java index 6c5be470d..3185b42c8 100644 --- a/src/main/java/com/sk89q/worldedit/function/mask/MaskIntersection.java +++ b/src/main/java/com/sk89q/worldedit/function/mask/MaskIntersection.java @@ -44,7 +44,7 @@ public class MaskIntersection extends AbstractMask { */ public MaskIntersection(Collection masks) { checkNotNull(masks); - masks.addAll(masks); + this.masks.addAll(masks); } /** @@ -63,7 +63,7 @@ public class MaskIntersection extends AbstractMask { */ public void add(Collection masks) { checkNotNull(masks); - masks.addAll(masks); + this.masks.addAll(masks); } /**