Fix node-mc-proto disconnecting players from the notchian client

This commit is contained in:
roblabla 2015-05-19 13:08:09 +00:00
parent 4018860508
commit fb6641b374

View File

@ -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;