geforkt von Mirrors/FastAsyncWorldEdit
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));
|
BlockReplace replace = new BlockReplace(this, Patterns.wrap(pattern));
|
||||||
RegionOffset offset = new RegionOffset(new Vector(0, 1, 0), replace);
|
RegionOffset offset = new RegionOffset(new Vector(0, 1, 0), replace);
|
||||||
GroundFunction ground = new GroundFunction(this, offset);
|
GroundFunction ground = new GroundFunction(this, offset);
|
||||||
LayerVisitor visitor = new LayerVisitor(
|
LayerVisitor visitor = new LayerVisitor(asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground);
|
||||||
this, asFlatRegion(region), minimumBlockY(region), maximumBlockY(region), ground);
|
|
||||||
OperationHelper.completeLegacy(visitor);
|
OperationHelper.completeLegacy(visitor);
|
||||||
return ground.getAffected();
|
return ground.getAffected();
|
||||||
}
|
}
|
||||||
@ -1189,8 +1188,7 @@ public class EditSession implements Extent {
|
|||||||
|
|
||||||
Naturalizer naturalizer = new Naturalizer(this);
|
Naturalizer naturalizer = new Naturalizer(this);
|
||||||
FlatRegion flatRegion = Regions.asFlatRegion(region);
|
FlatRegion flatRegion = Regions.asFlatRegion(region);
|
||||||
LayerVisitor visitor = new LayerVisitor(
|
LayerVisitor visitor = new LayerVisitor(flatRegion, minimumBlockY(region), maximumBlockY(region), naturalizer);
|
||||||
this, flatRegion, minimumBlockY(region), maximumBlockY(region), naturalizer);
|
|
||||||
OperationHelper.completeLegacy(visitor);
|
OperationHelper.completeLegacy(visitor);
|
||||||
return naturalizer.getAffected();
|
return naturalizer.getAffected();
|
||||||
}
|
}
|
||||||
@ -1935,8 +1933,7 @@ public class EditSession implements Extent {
|
|||||||
double density = 0.02;
|
double density = 0.02;
|
||||||
|
|
||||||
GroundFunction ground = new GroundFunction(this, generator);
|
GroundFunction ground = new GroundFunction(this, generator);
|
||||||
LayerVisitor visitor = new LayerVisitor(
|
LayerVisitor visitor = new LayerVisitor(region, minimumBlockY(region), maximumBlockY(region), ground);
|
||||||
this, 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);
|
||||||
return ground.getAffected();
|
return ground.getAffected();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren