Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-27 03:12:37 +01:00
Fixed LayerVisitor constructors in EditSession.
Dieser Commit ist enthalten in:
Ursprung
7dc81f8350
Commit
593a9e555a
@ -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();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren