From fb6641b37464e2674a21e01f62c0f215c73e76e7 Mon Sep 17 00:00:00 2001 From: roblabla Date: Tue, 19 May 2015 13:08:09 +0000 Subject: [PATCH] Fix node-mc-proto disconnecting players from the notchian client --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index b82a679..ef69bfe 100644 --- a/src/index.js +++ b/src/index.js @@ -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;