Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
[fix] Freecam moves player when running Baritone and not pathing
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna5ama committed Jan 8, 2021
1 parent f5beed8 commit 3b7b5bf
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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()
}
Expand Down

0 comments on commit 3b7b5bf

Please sign in to comment.