Skip to content

Commit 7b99509

Browse files
committed
rotations fix for placements
1 parent f2773ef commit 7b99509

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ object RotationManager : RequestHandler<RotationRequest>(
5353
TickStage.TickStart
5454
), Loadable {
5555
var currentRotation = Rotation.ZERO
56+
val nextRotation get() = activeRequest?.target?.targetRotation?.value ?: currentRotation
5657
private var prevRotation = Rotation.ZERO
5758

5859
private var changedThisTick = false

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
@@ -47,7 +47,7 @@ annotation class RotationDsl
4747
@RotationDsl
4848
fun lookAt(angle: Rotation, maxAngleDistance: Double = 10.0) =
4949
RotationTarget(null, {
50-
RotationManager.currentRotation dist angle < maxAngleDistance
50+
RotationManager.nextRotation dist angle < maxAngleDistance
5151
}) { angle }
5252

5353
/**

0 commit comments

Comments
 (0)