mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 19:06:07 +00:00
Fixed LayerVisitor constructors in EditSession.
This commit is contained in:
parent
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();
|
||||
|
Loading…
Reference in New Issue
Block a user