Update TheAlteningAccount.java #5919
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
Description
Fixes an issue where TheAltening accounts could log in in the alt manager but failed to join servers with:
MinecraftClientException: Failed to read value {}


The problem was that
TheAlteningAccount.login()was switching the wholeApiServicesenvironment over to TheAltening’s hosts. That made Mojang’s authlib call endpoints that don’t fully match what it expects, so some responses came back as{}and blew up. This behavior was likely introduced in the chat security updated or on some variant of the 1.20.X versionsThe new
login():super.login()so the client keeps using the normal Mojang environment.setSession(new Session(...)).Alt manager behaviour stays the same, but TheAltening accounts can now actually join servers.
How Has This Been Tested?
TheAltening Login token for your testing:
[email protected]
Will be valid for approximately 7 days after the publication of this post
Checklist: