mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-02-17 08:10:18 -05:00
fix launcher_profiles.json problems (#813)
fixes launcher_profiles.json (formerly launcher_accounts.json) not being written to (all clienttokens being deleted) in specific cases
This commit is contained in:
parent
10984fd5d5
commit
bf309ba5a4
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ module.exports = async function (client, options) {
|
|||
const cb = function (err, session) {
|
||||
if (options.profilesFolder) {
|
||||
getLauncherProfiles().then((auths) => {
|
||||
if (!auths.authenticationDatabase) auths.authenticationDatabase = []
|
||||
try {
|
||||
const lowerUsername = options.username.toLowerCase()
|
||||
let profile = Object.keys(auths.authenticationDatabase).find(key =>
|
||||
|
|
Loading…
Reference in a new issue