We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf0c26 commit 1285ae0Copy full SHA for 1285ae0
src/main/kotlin/com/lambda/interaction/request/rotating/visibilty/RotationTargets.kt
@@ -56,11 +56,8 @@ fun lookInDirection(direction: PlaceDirection) =
56
RotationTarget(null, {
57
PlaceDirection.fromRotation(RotationManager.activeRotation) == direction
58
}) {
59
- if (!direction.isInArea(RotationManager.activeRotation) || !direction.isInArea(player.rotation)) {
60
- direction.snapToArea(RotationManager.activeRotation)
61
- } else {
62
- player.rotation
63
- }
+ if (!direction.isInArea(player.rotation)) direction.snapToArea(RotationManager.activeRotation)
+ else player.rotation
64
}
65
66
/**
0 commit comments