Skip to content

block face position fix + lint#2801

Merged
rom1504 merged 1 commit into
PrismarineJS:masterfrom
WhoTho:master
Nov 29, 2022
Merged

block face position fix + lint#2801
rom1504 merged 1 commit into
PrismarineJS:masterfrom
WhoTho:master

Conversation

@WhoTho
Copy link
Copy Markdown
Contributor

@WhoTho WhoTho commented Oct 15, 2022

No description provided.

@WhoTho
Copy link
Copy Markdown
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