mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Fixed LayerVisitor constructors in RegionCommands.
This commit is contained in:
parent
593a9e555a
commit
f48040572e
@ -552,8 +552,7 @@ public void forest(CommandContext args, LocalSession session, LocalPlayer player
|
||||
|
||||
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 void flora(CommandContext args, LocalSession session, LocalPlayer player,
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user