Register `LookBehavior` first

Since there's no event priority system, this is necessary to ensure anything else listening to the PRE `TickEvent` can accurately simulate rotations.
This commit is contained in:
Brady 2023-06-22 20:38:00 -05:00
parent bfae100cb9
commit c9a18caf49
No known key found for this signature in database
GPG Key ID: 73A788379A197567
1 changed files with 1 additions and 1 deletions

View File

@ -101,8 +101,8 @@ public class Baritone implements IBaritone {
this.playerContext = new BaritonePlayerContext(this, mc);
{
this.pathingBehavior = this.registerBehavior(PathingBehavior::new);
this.lookBehavior = this.registerBehavior(LookBehavior::new);
this.pathingBehavior = this.registerBehavior(PathingBehavior::new);
this.inventoryBehavior = this.registerBehavior(InventoryBehavior::new);
this.inputOverrideHandler = this.registerBehavior(InputOverrideHandler::new);
this.registerBehavior(WaypointBehavior::new);