[fix] Freecam moves player when running Baritone and not pathing

This commit is contained in:
Xiaro 2021-01-08 10:51:48 -05:00
parent f5beed858c
commit 3b7b5bf36d
No known key found for this signature in database
GPG Key ID: 996D265D6E155377
1 changed files with 4 additions and 2 deletions

View File

@ -86,7 +86,6 @@ object Freecam : Module(
}
safeListener<InputEvent.KeyInputEvent> {
if (mc.world == null || mc.player == null) return@safeListener
// Force it to stay in first person lol
if (mc.gameSettings.keyBindTogglePerspective.isKeyDown) mc.gameSettings.thirdPersonView = 2
}
@ -103,9 +102,12 @@ object Freecam : Module(
}
safeListener<InputUpdateEvent>(9999) {
if (it.movementInput !is MovementInputFromOptions || BaritoneUtils.isPathing || BaritoneUtils.isActive) return@safeListener
if (it.movementInput !is MovementInputFromOptions || BaritoneUtils.isPathing) return@safeListener
resetMovementInput(it.movementInput)
if (BaritoneUtils.isActive) return@safeListener
if (autoRotate.value) updatePlayerRotation()
if (arrowKeyMove.value) updatePlayerMovement()
}