Update TheAlteningAccount.java
Type of change
- [X ] Bug fix
- [ ] New feature
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 whole ApiServices environment 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 versions
The new login():
- Uses WaybackAuthLib to log into TheAltening and get the profile + token.
- Calls
super.login()so the client keeps using the normal Mojang environment. - Applies the TheAltening session with
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:
- [X] My code follows the style guidelines of this project.
- [X] I have added comments to my code in more complex areas.
- [X] I have tested the code in both development and production environments.