Skip to content

Commit ada6fa2

Browse files
committed
Revert "rotations fix for placements"
This reverts commit 7b99509.
1 parent aa57f9b commit ada6fa2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

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

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

5958
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.nextRotation dist angle < maxAngleDistance
50+
RotationManager.currentRotation dist angle < maxAngleDistance
5151
}) { angle }
5252

5353
/**

0 commit comments

Comments
 (0)