Skip to content

Commit d1175fc

Browse files
committed
default base yaw to the players yaw so movement calculations arent directed towards the direction of activeRotation
1 parent cc65408 commit d1175fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/lambda/interaction/request/rotating/RotationManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ object RotationManager : RequestHandler<RotationRequest>(
221221
fun processInputs(input: Input) = runSafe {
222222
// The yaw relative to which the movement was constructed
223223
val baritoneYaw = baritoneContext?.target?.targetRotation?.value?.yaw
224-
val baseYaw = baritoneYaw ?: activeRotation.yaw
224+
val baseYaw = baritoneYaw ?: player.yaw.toDouble()
225225
val strafeEvent = RotationEvent.StrafeInput(baseYaw, input)
226226
val movementYaw = strafeEvent.post().strafeYaw
227227

0 commit comments

Comments
 (0)