Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MineProcess stalling on blocks which are canWalkThrough but shouldn't be broken #4662

Open
wants to merge 2 commits into
base: 1.19.4
Choose a base branch
from

Conversation

ZacSharp
Copy link
Collaborator

Before breaking a block, MineProcess checks MovementHelper.avoidBreaking to avoid falling blocks and similar problems. Normally it also does that check before setting the goal implicitly via MovementHelper.getMiningDurationTicks. However that method (correctly) short-circuits for canWalkThrough blocks so such blocks could end up in the goal, even if they cannot be mined.

Note: This fixes the linked issue by completely ignoring blocks next to the world border, which is consistent with the pathfinder and mining solid blocks. Doing so might be considered a bug, because those blocks are breakable.

Fixes #4654

shaft-mining checks `avoidBreaking` so not checking it here can cause
Baritone to walk to a position and then do nothing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Baritone can't mine flowers next to the world boarder
1 participant