fix write to launcher_accounts.json (#827)

fix minecraftProfile id missing when writing new profile to launcher_accounts.json, causing yggdrasil to fail when authenticating session
This commit is contained in:
Majorblake 2021-03-22 12:58:00 +00:00 committed by GitHub
parent 7a2fee1b05
commit 9d6e3a9092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,7 @@ module.exports = async function (client, options) {
const newProfileObj = {
accessToken: session.accessToken,
minecraftProfile: {
id: session.selectedProfile.id,
name: session.selectedProfile.name
},
userProperites: oldProfileObj ? (oldProfileObj.userProperites || []) : [],