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(AutoWalk): Calculate x & z on first tick #4735

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

koppchen
Copy link
Contributor

@koppchen koppchen commented Jul 9, 2024

Type of change

  • Bug fix
  • New feature

Description

Calculate x & z on first tick() in the BaritonePathManager GoalDirection class, to fix AutoWalk smart mode so baritone walks in the direction the player is facing. This fixes an issue where smart mode always starts walking towards 0,0.

Related issues

How Has This Been Tested?

  • verified player travels in the direction the player is facing when AutoWalk is enabled in smart mode
  • verified simple mode is un-affected

This GoalDirection code seems to only be used by AutoWalk, so this shouldn't affect anything else.

Checklist:

  • My code follows the style guidelines of this project.
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.

Calculate x & z on first tick() in the BaritonePathManager GoalDirection
class, to fix AutoWalk smart mode so baritone walks in the direction the
player is facing. This fixes an issue where smart mode always starts
walking towards 0,0.
@koppchen koppchen mentioned this pull request Jul 9, 2024
2 tasks
@MineGame159 MineGame159 merged commit babc0c4 into MeteorDevelopment:master Jul 16, 2024
1 check passed
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