From 593a9e555a0ae7fbb8011aa85e688899b0dac644 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 30 Mar 2014 13:49:26 -0700 Subject: [PATCH] Fixed LayerVisitor constructors in EditSession. --- src/main/java/com/sk89q/worldedit/EditSession.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/EditSession.java b/src/main/java/com/sk89q/worldedit/EditSession.java index 69302e1bc..9ee634189 100644 --- a/src/main/java/com/sk89q/worldedit/EditSession.java +++ b/src/main/java/com/sk89q/worldedit/EditSession.java @@ -1170,8 +1170,7 @@ public class EditSession implements Extent { BlockReplace replace = new BlockReplace(this, Patterns.wrap(pattern)); RegionOffset offset = new RegionOffset(new Vector(0, 1, 0), replace); GroundFunction ground = new GroundFunction(this, offset); - LayerVisitor visitor = new LayerVisitor( - this, asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground); + LayerVisitor visitor = new LayerVisitor(asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground); OperationHelper.completeLegacy(visitor); return ground.getAffected(); } @@ -1189,8 +1188,7 @@ public class EditSession implements Extent { Naturalizer naturalizer = new Naturalizer(this); FlatRegion flatRegion = Regions.asFlatRegion(region); - LayerVisitor visitor = new LayerVisitor( - this, flatRegion, minimumBlockY(region), maximumBlockY(region), naturalizer); + LayerVisitor visitor = new LayerVisitor(flatRegion, minimumBlockY(region), maximumBlockY(region), naturalizer); OperationHelper.completeLegacy(visitor); return naturalizer.getAffected(); } @@ -1935,8 +1933,7 @@ public class EditSession implements Extent { double density = 0.02; GroundFunction ground = new GroundFunction(this, generator); - LayerVisitor visitor = new LayerVisitor( - this, region, minimumBlockY(region), maximumBlockY(region), ground); + LayerVisitor visitor = new LayerVisitor(region, minimumBlockY(region), maximumBlockY(region), ground); visitor.setMask(new NoiseFilter2D(new RandomNoise(), density)); OperationHelper.completeLegacy(visitor); return ground.getAffected();