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

Made minecraft version autodetect if not present in settings.js #405

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

Conversation

uukelele-scratch
Copy link
Contributor

No description provided.

@MaxRobinsonTheGreat
Copy link
Collaborator

does this work? it just connects to whatever version of the game that's currently running?

@uukelele-scratch
Copy link
Contributor Author

does this work? it just connects to whatever version of the game that's currently running?

Line 66 of https://github.com/PrismarineJS/mineflayer/blob/master/lib/loader.js shows that if version is not set, it defaults to false. The code I added also uses false if no version is set. From past experience I know that not using a version when using createBot automatically chooses the correct version.

@uukelele-scratch
Copy link
Contributor Author

uukelele-scratch commented Jan 10, 2025

I just changed it again because I realised that bool || false doesn't work and switched it to bool ?? false

Edit: My brain isn't processing logic properly, bool || false does work. Still no difference to bool ?? false though.

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