Skip to content

Commit 7e820d4

Browse files
committed
fix oversight in PlaceDirection revert
1 parent 99b40c9 commit 7e820d4

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/kotlin/com/lambda/interaction/request/rotation/visibilty

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/interaction/request/rotation/visibilty/RotationTargets.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fun lookInDirection(direction: PlaceDirection) =
5757
PlaceDirection.fromRotation(RotationManager.activeRotation) == direction
5858
}) {
5959
if (!direction.isInArea(RotationManager.activeRotation) || !direction.isInArea(player.rotation)) {
60-
RotationManager.activeRotation
60+
direction.snapToArea(RotationManager.activeRotation)
6161
} else {
6262
player.rotation
6363
}

0 commit comments

Comments
 (0)