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

block face position fix + lint #2801

Merged
merged 1 commit into from
Nov 29, 2022
Merged

block face position fix + lint #2801

merged 1 commit into from
Nov 29, 2022

Conversation

WhoTho
Copy link
Contributor

@WhoTho WhoTho commented Oct 15, 2022

No description provided.

@WhoTho
Copy link
Contributor Author

WhoTho commented Oct 15, 2022

Previous calculations for block faces were doing the distance to the corner of the block and then adding 0.5 instead of just doing the bots distance to the center of the block. That error caused the bot to think it was supposed to be looking at different sides of the block and skipping past open faces.

@rom1504 rom1504 merged commit 58c5db7 into PrismarineJS:master Nov 29, 2022
WhoTho added a commit to WhoTho/mineflayer-pathfinder that referenced this pull request Feb 1, 2023
Same thing as PrismarineJS/mineflayer#2801

The math for getting the position relative to the center of the block was off by a bit.
IceTank pushed a commit to PrismarineJS/mineflayer-pathfinder that referenced this pull request Feb 2, 2023
Same thing as PrismarineJS/mineflayer#2801

The math for getting the position relative to the center of the block was off by a bit.
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.

2 participants