Use the base y as the center
This commit is contained in:
parent
2649824761
commit
b0b2471b73
@ -11,6 +11,7 @@ import com.sk89q.worldedit.math.interpolation.Interpolation;
|
||||
import com.sk89q.worldedit.math.transform.AffineTransform;
|
||||
import com.sk89q.worldedit.math.transform.RoundedTransform;
|
||||
import com.sk89q.worldedit.math.transform.Transform;
|
||||
import com.sk89q.worldedit.regions.Region;
|
||||
import com.sk89q.worldedit.session.ClipboardHolder;
|
||||
|
||||
/**
|
||||
@ -67,7 +68,8 @@ public class ClipboardSpline extends Spline {
|
||||
Clipboard clipboard = clipboardHolder.getClipboard();
|
||||
this.originalOrigin = clipboard.getOrigin();
|
||||
|
||||
center = clipboard.getRegion().getCenter();
|
||||
Region region = clipboard.getRegion();
|
||||
center = region.getCenter().setY(region.getMinimumPoint().getY());
|
||||
this.centerOffset = center.subtract(center.round());
|
||||
this.center = center.subtract(centerOffset);
|
||||
this.transform = transform;
|
||||
|
@ -46,7 +46,7 @@ public class SweepBrush implements Brush, ResettableTool {
|
||||
boolean newPos = this.position == null || !position.equals(this.position);
|
||||
this.position = position;
|
||||
if (newPos) {
|
||||
positions.add(position.add(0, 1, 0));
|
||||
positions.add(position);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user