mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-16 03:14:04 +00:00
Fix #1510
This commit is contained in:
@@ -22,6 +22,7 @@ public class SurfaceSpline implements Brush {
|
||||
private final double bias;
|
||||
private final double continuity;
|
||||
private final double quality;
|
||||
private final ArrayList<BlockVector3> path = new ArrayList<>();
|
||||
|
||||
public SurfaceSpline(double tension, double bias, double continuity, double quality) {
|
||||
this.tension = tension;
|
||||
@@ -30,8 +31,6 @@ public class SurfaceSpline implements Brush {
|
||||
this.quality = quality;
|
||||
}
|
||||
|
||||
private final ArrayList<BlockVector3> path = new ArrayList<>();
|
||||
|
||||
@Override
|
||||
public void build(EditSession editSession, BlockVector3 pos, Pattern pattern, double radius) throws
|
||||
MaxChangedBlocksException {
|
||||
@@ -90,7 +89,6 @@ public class SurfaceSpline implements Brush {
|
||||
final int ceilrad = (int) Math.ceil(radius);
|
||||
for (BlockVector3 v : vset) {
|
||||
final int tipx = v.getBlockX();
|
||||
final int tipy = v.getBlockY();
|
||||
final int tipz = v.getBlockZ();
|
||||
for (int loopx = tipx - ceilrad; loopx <= tipx + ceilrad; loopx++) {
|
||||
for (int loopz = tipz - ceilrad; loopz <= tipz + ceilrad; loopz++) {
|
||||
@@ -105,8 +103,8 @@ public class SurfaceSpline implements Brush {
|
||||
}
|
||||
}
|
||||
editSession.setBlocks(newSet, pattern);
|
||||
path.clear();
|
||||
}
|
||||
path.clear();
|
||||
if (editSession.getActor() != null) {
|
||||
editSession.getActor().print(Caption.of("fawe.worldedit.brush.spline.secondary"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user