mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Negative angles will return negative number of rotations thus never looping the rotation.
This commit is contained in:
parent
24056df78a
commit
bb609a47c2
@ -126,7 +126,7 @@ public class CuboidClipboard {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
boolean reverse = angle < 0;
|
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 width = getWidth();
|
||||||
int length = getLength();
|
int length = getLength();
|
||||||
|
Loading…
Reference in New Issue
Block a user