From c725dd0b18eb27dafcf66bd20f16920e109b07d7 Mon Sep 17 00:00:00 2001 From: Hazel Trinity Date: Wed, 19 Aug 2020 10:13:41 -0700 Subject: [PATCH] Uses setDirection SweepBrush.java should be correct --- .../com/boydti/fawe/object/brush/sweep/SweepBrush.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/worldedit-core/src/main/java/com/boydti/fawe/object/brush/sweep/SweepBrush.java b/worldedit-core/src/main/java/com/boydti/fawe/object/brush/sweep/SweepBrush.java index 27310d58b..429c7b9a9 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/object/brush/sweep/SweepBrush.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/object/brush/sweep/SweepBrush.java @@ -85,14 +85,16 @@ public class SweepBrush implements Brush, ResettableTool { Clipboard clipboard = holder.getClipboard(); BlockVector3 dimensions = clipboard.getDimensions(); - AffineTransform transform = new AffineTransform(); - if (dimensions.getBlockX() > dimensions.getBlockZ()) { - transform = transform.rotateY(90); - } double quality = Math.max(dimensions.getBlockX(), dimensions.getBlockZ()); + AffineTransform transform = new AffineTransform(); + ClipboardSpline spline = new ClipboardSpline(editSession, holder, interpol, transform, nodes.size()); + if (dimensions.getBlockX() > dimensions.getBlockZ()) { + spline.setDirection(Vector2.at(0, 1)); + } + switch (copies) { case 1: { spline.pastePosition(0D);