From 63633c13e30972167a483cd78e33aedcd13b896e Mon Sep 17 00:00:00 2001 From: onixiya1337 <47077455+onixiya1337@users.noreply.github.com> Date: Sat, 16 Dec 2023 15:20:08 +0100 Subject: [PATCH] Update PathingBehavior.java --- src/main/java/baritone/behavior/PathingBehavior.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/baritone/behavior/PathingBehavior.java b/src/main/java/baritone/behavior/PathingBehavior.java index bbe1503..c044f21 100644 --- a/src/main/java/baritone/behavior/PathingBehavior.java +++ b/src/main/java/baritone/behavior/PathingBehavior.java @@ -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;