fix: decouple first-person camera from bot aims #103
Loading…
Reference in a new issue
No description provided.
Delete branch "t3/decouple-camera-bot-movement"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
aimForServer) and apply them fromSendMovementPacketsEvent.Preafter Baritone's own look. The server sees the exact validated interaction face without an extra standalone rotation packet, and the camera never moves for it.Why
Previously the view lease forced Baritone into client look mode (
freeLook=false), so Baritone left the entity rotated toward the path or crop every tick and the camera snapped. Server-side interactions still need the server to observe the exact harvest/placement rotation, so simply enabling free look was not enough.The new lease uses Baritone's SERVER look mode. Baritone applies the aim before
sendChanges, the aim rides the normal movement packet, and Baritone's POST phase restores the camera. The local shield covers the remaining same-tick aims that Baritone does not own.Anti-cheat considerations
Harvest throughput
The change does not add ticks to harvesting or placement. Normal farming still uses Baritone's one interaction per tick; toolmode still aims through the movement look and confirms each footprint before the next swing.
Local validation
./gradlew ... compileJava lint test— BUILD SUCCESSFUL./gradlew ... build— BUILD SUCCESSFUL./scripts/ci-preflight.sh— passed./scripts/check-release-jar.sh— passedTested commit:
ca371e7.Forgejo CI: https://git.glitched.systems/gecko/mcbot/actions/runs/876 (passed).