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

Do not interfere with the operation of setControlState. #87

Closed
nusu-github opened this issue Dec 14, 2020 · 2 comments
Closed

Do not interfere with the operation of setControlState. #87

nusu-github opened this issue Dec 14, 2020 · 2 comments

Comments

@nusu-github
Copy link

After updating to Release 1.2.0, I can no longer move with setControlState.

@nusu-github
Copy link
Author

2020-12-15_06 27 37

bot.on("move", () => { const target = nearestEntity(bot, "player", 2); if (target) { bot.lookAt(target.position.offset(0, target.height, 0)); bot.setControlState("sprint", false); bot.setControlState("back", true); bot.setControlState("left", true); } else { bot.setControlState("sprint", true); bot.setControlState("back", false); bot.setControlState("left", false); } });

@Karang Karang closed this as completed in 6ea3b91 Dec 14, 2020
@Karang
Copy link
Collaborator

Karang commented Dec 14, 2020

Thanks for the report, should be fixed now. I'll release a minor version.

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

No branches or pull requests

2 participants