mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-03-14 22:39:55 -04:00
Fixed password=false not using offline mode (#790)
* Fixed password=false not using offline mode * revert client token change
This commit is contained in:
parent
45c04cb460
commit
ea52fb8c13
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ module.exports = async function (client, options) {
|
|||
const clientToken = options.clientToken || (options.session && options.session.clientToken) || (options.profilesFolder && (await getLauncherProfiles()).clientToken) || UUID.v4().toString().replace(/-/g, '')
|
||||
const skipValidation = false || options.skipValidation
|
||||
options.accessToken = null
|
||||
options.haveCredentials = options.password != null || (clientToken != null && options.session != null) || (options.profilesFolder && await hasProfileCredentials())
|
||||
options.haveCredentials = !!options.password || (clientToken != null && options.session != null) || (options.profilesFolder && await hasProfileCredentials())
|
||||
|
||||
async function getLauncherProfiles () { // get launcher profiles
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue