Skip to content

Commit

Permalink
possible fix for schem rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 3, 2017
1 parent a924a00 commit 1d340f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Expand Up @@ -202,9 +202,12 @@ public void execute(final ScriptEntry scriptEntry) throws CommandExecutionExcept
}
// TODO: Make me waitable!
int ang = angle.asInt();
if (ang < 0) {
while (ang < 0) {
ang = 360 + ang;
}
while (ang < 360) {
ang -= 360;
}
while (ang > 0) {
ang -= 90;
schematics.get(name.asString().toUpperCase()).rotateOne();
Expand Down
Expand Up @@ -136,6 +136,9 @@ public void rotateOne() {
}
}
}
double xw = x_width;
x_width = z_height;
z_height = xw;
blocks = bd;
}

Expand Down

0 comments on commit 1d340f6

Please sign in to comment.