mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-30 14:41:27 -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);
|
if(accessToken != null) getSession(options.username, accessToken, clientToken, true, cb);
|
||||||
else getSession(options.username, options.password, options.clientToken, false, cb);
|
else getSession(options.username, options.password, clientToken, false, cb);
|
||||||
} else {
|
} else {
|
||||||
// assume the server is in offline mode and just go for it.
|
// assume the server is in offline mode and just go for it.
|
||||||
client.username = options.username;
|
client.username = options.username;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user