Skip to content

Commit

Permalink
Fixed vertical facing machines not having proper sideness, closes Inn…
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Nov 14, 2021
1 parent 897d535 commit 65cc3a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/com/hrznstudio/titanium/util/FacingUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ public static Direction getFacingFromSide(Direction block, Sideness sideness) {
if (sideness == Sideness.BACK) return block.getOpposite();
if (sideness == Sideness.RIGHT) return block.rotateYCCW();
if (sideness == Sideness.LEFT) return block.rotateY();
}else {
if (sideness == Sideness.TOP) return Direction.EAST;
if (sideness == Sideness.BOTTOM) return Direction.WEST;
if (sideness == Sideness.FRONT) return block;
if (sideness == Sideness.BACK) return block.getOpposite();
if (sideness == Sideness.RIGHT) return Direction.SOUTH;
if (sideness == Sideness.LEFT) return Direction.NORTH;
}
return Direction.NORTH;
}
Expand Down

0 comments on commit 65cc3a5

Please sign in to comment.