File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
common/src/main/kotlin/com/lambda/interaction/request/rotation Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ annotation class RotationDsl
4747@RotationDsl
4848fun 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/* *
You can’t perform that action at this time.
0 commit comments