From 52bbbb179702fdff31135299da717cf06ca73117 Mon Sep 17 00:00:00 2001 From: sk89q Date: Wed, 26 Mar 2014 23:06:24 -0700 Subject: [PATCH] Added CombinedMask(Mask ...mask) constructor. --- .../com/sk89q/worldedit/masks/CombinedMask.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/masks/CombinedMask.java b/src/main/java/com/sk89q/worldedit/masks/CombinedMask.java index fb12c8246..79eca640b 100644 --- a/src/main/java/com/sk89q/worldedit/masks/CombinedMask.java +++ b/src/main/java/com/sk89q/worldedit/masks/CombinedMask.java @@ -19,13 +19,14 @@ package com.sk89q.worldedit.masks; -import java.util.ArrayList; -import java.util.List; import com.sk89q.worldedit.EditSession; import com.sk89q.worldedit.LocalPlayer; import com.sk89q.worldedit.LocalSession; import com.sk89q.worldedit.Vector; +import java.util.ArrayList; +import java.util.List; + public class CombinedMask extends AbstractMask { private final List masks = new ArrayList(); @@ -33,7 +34,13 @@ public class CombinedMask extends AbstractMask { } public CombinedMask(Mask mask) { - masks.add(mask); + add(mask); + } + + public CombinedMask(Mask ...mask) { + for (Mask m : mask) { + add(m); + } } public CombinedMask(List masks) {