Skip to content

Commit

Permalink
Update PathingBehavior.java
Browse files Browse the repository at this point in the history
  • Loading branch information
onixiya1337 committed Dec 16, 2023
1 parent 32f6d48 commit 63633c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/baritone/behavior/PathingBehavior.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ public void onPlayerSprintState(SprintStateEvent event) {
}

private void tickPath() {
// check if player inventory is opened
if (ctx.player().openContainer != ctx.player().inventoryContainer) {
baritone.getInputOverrideHandler().clearAllKeys();
baritone.getInputOverrideHandler().getBlockBreakHelper().stopBreakingBlock();
return;
}
pausedThisTick = false;
if (pauseRequestedLastTick && safeToCancel) {
pauseRequestedLastTick = false;
Expand Down

0 comments on commit 63633c1

Please sign in to comment.