From bb609a47c2d17633abfa38e87de24ddd4898ac76 Mon Sep 17 00:00:00 2001 From: ZachBora Date: Sun, 2 Oct 2011 22:26:44 -0300 Subject: [PATCH] Negative angles will return negative number of rotations thus never looping the rotation. --- src/main/java/com/sk89q/worldedit/CuboidClipboard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/CuboidClipboard.java b/src/main/java/com/sk89q/worldedit/CuboidClipboard.java index cfbe63562..823e6bb41 100644 --- a/src/main/java/com/sk89q/worldedit/CuboidClipboard.java +++ b/src/main/java/com/sk89q/worldedit/CuboidClipboard.java @@ -126,7 +126,7 @@ public class CuboidClipboard { return; } boolean reverse = angle < 0; - int numRotations = (int)Math.floor(angle / 90.0); + int numRotations = Math.abs((int)Math.floor(angle / 90.0)); int width = getWidth(); int length = getLength();