[go: up one dir, main page]

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

Create offline mode accounts with consistent Uuids #1622

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

LennyMcLennington
Copy link
Member

Uses basically what already exists in Qt, just modified so I can specify an arbitrary length byte array for the namespace. Not really sure if it needs to be the same as the way Minecraft generates it or if I could've just used Uuid::createUuidV3. It would've still been consistent either way, but whatever, this works.

Previously it would've just created a random Uuid as specified by https://doc.qt.io/qt-6/quuid.html#createUuid.
Now, it uses the same method briefly described in https://wiki.vg/Protocol#Login, example Java implementation of which is shown in https://gist.github.com/games647/615846434bfc08c2164349eefdd35d33.

Uses basically what already exists in Qt, just modified so I can specify
an arbitrary length byte array for the namespace. Not really sure if it
needs to be the same as the way Minecraft generates it or if I could've
just used Uuid::createUuidV3. It would've still been consistent either
way, but whatever, this works.

Signed-off-by: Lenny McLennington <lenny@sneed.church>
Copy link
Member
@Kaydax Kaydax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LennyMcLennington LennyMcLennington merged commit bce5a8d into develop Dec 17, 2023
14 checks 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