Skip to content

Commit

Permalink
Fixed Mana Enchanter formation and validation assuming opposite rotat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
TheRealWormbo committed Oct 29, 2023
1 parent 3ef3a93 commit ef6e930
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ public static Direction.Axis canEnchanterExist(Level world, BlockPos pos) {

private static Rotation getAxisRotation(Direction.Axis axis) {
return switch (axis) {
case X -> Rotation.NONE;
case Z -> Rotation.CLOCKWISE_90;
case Z -> Rotation.NONE;
case X -> Rotation.CLOCKWISE_90;
default -> throw new IllegalStateException("Enchanter should only ever be facing in X or Z direction");
};
}
Expand Down

0 comments on commit ef6e930

Please sign in to comment.