From 955a52825f405c247090f0c034c968497f0283bd Mon Sep 17 00:00:00 2001 From: sk89q Date: Wed, 9 Jul 2014 14:34:05 -0700 Subject: [PATCH] Flip direction of //rotate to have it match previous behavior. --- .../java/com/sk89q/worldedit/command/ClipboardCommands.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java b/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java index bc6ed59e9..a2330ac06 100644 --- a/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java +++ b/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java @@ -190,9 +190,9 @@ public class ClipboardCommands { ClipboardHolder holder = session.getClipboard(); AffineTransform transform = new AffineTransform(); - transform = transform.rotateY(Math.toRadians(yRotate != null ? yRotate : 0)); - transform = transform.rotateX(Math.toRadians(xRotate != null ? xRotate : 0)); - transform = transform.rotateZ(Math.toRadians(zRotate != null ? zRotate : 0)); + transform = transform.rotateY(-Math.toRadians(yRotate != null ? yRotate : 0)); + transform = transform.rotateX(-Math.toRadians(xRotate != null ? xRotate : 0)); + transform = transform.rotateZ(-Math.toRadians(zRotate != null ? zRotate : 0)); holder.setTransform(holder.getTransform().combine(transform)); player.print("The clipboard copy has been rotated."); }