geforkt von Mirrors/FastAsyncWorldEdit
Fixed LayerVisitor constructors in RegionCommands.
Dieser Commit ist enthalten in:
Ursprung
593a9e555a
Commit
f48040572e
@ -552,8 +552,7 @@ public class RegionCommands {
|
|||||||
|
|
||||||
ForestGenerator generator = new ForestGenerator(editSession, new TreeGenerator(type));
|
ForestGenerator generator = new ForestGenerator(editSession, new TreeGenerator(type));
|
||||||
GroundFunction ground = new GroundFunction(editSession, generator);
|
GroundFunction ground = new GroundFunction(editSession, generator);
|
||||||
LayerVisitor visitor = new LayerVisitor(
|
LayerVisitor visitor = new LayerVisitor(asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground);
|
||||||
editSession, asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground);
|
|
||||||
visitor.setMask(new NoiseFilter2D(new RandomNoise(), density));
|
visitor.setMask(new NoiseFilter2D(new RandomNoise(), density));
|
||||||
OperationHelper.completeLegacy(visitor);
|
OperationHelper.completeLegacy(visitor);
|
||||||
|
|
||||||
@ -575,8 +574,7 @@ public class RegionCommands {
|
|||||||
Region region = session.getSelection(player.getWorld());
|
Region region = session.getSelection(player.getWorld());
|
||||||
FloraGenerator generator = new FloraGenerator(editSession);
|
FloraGenerator generator = new FloraGenerator(editSession);
|
||||||
GroundFunction ground = new GroundFunction(editSession, generator);
|
GroundFunction ground = new GroundFunction(editSession, generator);
|
||||||
LayerVisitor visitor = new LayerVisitor(
|
LayerVisitor visitor = new LayerVisitor(asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground);
|
||||||
editSession, asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground);
|
|
||||||
visitor.setMask(new NoiseFilter2D(new RandomNoise(), density));
|
visitor.setMask(new NoiseFilter2D(new RandomNoise(), density));
|
||||||
OperationHelper.completeLegacy(visitor);
|
OperationHelper.completeLegacy(visitor);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren