Added LocalWorld.createLiquidMask().

This commit is contained in:
sk89q
2014-03-30 14:16:06 -07:00
parent cc8a89f415
commit 41c4033fbb
2 changed files with 20 additions and 5 deletions

View File

@ -1313,11 +1313,7 @@ public class EditSession implements Extent {
MaskIntersection mask = new MaskIntersection(
new BoundedHeightMask(0, getWorld().getMaxY()),
new RegionMask(new EllipsoidRegion(null, origin, new Vector(radius, radius, radius))),
new BlockMask(this,
new BaseBlock(BlockID.STATIONARY_LAVA, -1),
new BaseBlock(BlockID.LAVA, -1),
new BaseBlock(BlockID.STATIONARY_WATER, -1),
new BaseBlock(BlockID.WATER, -1)));
getWorld().createLiquidMask());
BlockReplace replace = new BlockReplace(this, new BlockPattern(new BaseBlock(BlockID.AIR)));
RecursiveVisitor visitor = new RecursiveVisitor(mask, replace);