mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 21:52:17 -04:00
Fix node-mc-proto disconnecting players from the notchian client
This commit is contained in:
parent
4018860508
commit
fb6641b374
@ -287,8 +287,8 @@ function createClient(options) {
|
||||
}
|
||||
};
|
||||
|
||||
if(accessToken != null) getSession(options.username, accessToken, options.clientToken, true, cb);
|
||||
else getSession(options.username, options.password, options.clientToken, false, cb);
|
||||
if(accessToken != null) getSession(options.username, accessToken, clientToken, true, cb);
|
||||
else getSession(options.username, options.password, clientToken, false, cb);
|
||||
} else {
|
||||
// assume the server is in offline mode and just go for it.
|
||||
client.username = options.username;
|
||||
|
Loading…
x
Reference in New Issue
Block a user