Flip direction of //rotate to have it match previous behavior.

This commit is contained in:
sk89q 2014-07-09 14:34:05 -07:00
parent 56b349ead8
commit 955a52825f

View File

@ -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.");
}