From 0b9def20eadd6e3d8ea7e61364977fb4aadfddb0 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 19 Sep 2017 12:44:49 +1000 Subject: [PATCH] Fix surface mask --- .../main/java/com/sk89q/worldedit/command/MaskCommands.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/MaskCommands.java b/core/src/main/java/com/sk89q/worldedit/command/MaskCommands.java index f662207a..e8072d64 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/MaskCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/MaskCommands.java @@ -15,6 +15,7 @@ import com.boydti.fawe.object.mask.RadiusMask; import com.boydti.fawe.object.mask.RandomMask; import com.boydti.fawe.object.mask.SimplexMask; import com.boydti.fawe.object.mask.SkyLightMask; +import com.boydti.fawe.object.mask.SurfaceMask; import com.boydti.fawe.object.mask.WallMask; import com.boydti.fawe.object.mask.XAxisMask; import com.boydti.fawe.object.mask.YAxisMask; @@ -249,7 +250,7 @@ public class MaskCommands extends MethodCommands { desc = "Restrict to surfaces (any solid block touching air)" ) public Mask surface(Extent extent) { - return new MaskUnion(new ExistingBlockMask(extent), new AdjacentAnyMask(new BlockMask(extent, new BaseBlock(0)))); + return new SurfaceMask(extent); } @Command(