From d7b3db215e3e118899072bda7f364b00b3f99750 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 14 Nov 2019 17:57:43 +0000 Subject: [PATCH] Use SingleBlockTypeMask for fixLiquid --- .../src/main/java/com/sk89q/worldedit/EditSession.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java index 8f780c36a..9359fab7c 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java @@ -1595,13 +1595,13 @@ public class EditSession extends PassthroughExtent implements AutoCloseable { checkArgument(radius >= 0, "radius >= 0 required"); // Our origins can only be liquids - Mask liquidMask = new BlockTypeMask(this, fluid); + Mask liquidMask = new SingleBlockTypeMask(this, fluid); // But we will also visit air blocks MaskIntersection blockMask = new MaskUnion(liquidMask, Masks.negate(new ExistingBlockMask(this))); // There are boundaries that the routine needs to stay in - MaskIntersection mask = new MaskIntersection( + Mask mask = new MaskIntersection( new BoundedHeightMask(0, Math.min(origin.getBlockY(), getWorld().getMaxY())), new RegionMask(new EllipsoidRegion(null, origin, Vector3.at(radius, radius, radius))), blockMask