From f48040572e24177807e7e4586c57df8c93de0c16 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 30 Mar 2014 13:50:07 -0700 Subject: [PATCH] Fixed LayerVisitor constructors in RegionCommands. --- .../java/com/sk89q/worldedit/commands/RegionCommands.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java b/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java index 74748c60b..8563446da 100644 --- a/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/RegionCommands.java @@ -552,8 +552,7 @@ public class RegionCommands { ForestGenerator generator = new ForestGenerator(editSession, new TreeGenerator(type)); GroundFunction ground = new GroundFunction(editSession, generator); - LayerVisitor visitor = new LayerVisitor( - editSession, asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground); + LayerVisitor visitor = new LayerVisitor(asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground); visitor.setMask(new NoiseFilter2D(new RandomNoise(), density)); OperationHelper.completeLegacy(visitor); @@ -575,8 +574,7 @@ public class RegionCommands { Region region = session.getSelection(player.getWorld()); FloraGenerator generator = new FloraGenerator(editSession); GroundFunction ground = new GroundFunction(editSession, generator); - LayerVisitor visitor = new LayerVisitor( - editSession, asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground); + LayerVisitor visitor = new LayerVisitor(asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground); visitor.setMask(new NoiseFilter2D(new RandomNoise(), density)); OperationHelper.completeLegacy(visitor);