From 254223d9c7593c600957ff6bd7b3a91899cc57c1 Mon Sep 17 00:00:00 2001 From: roblabla Date: Mon, 23 Mar 2015 16:20:50 +0000 Subject: [PATCH] Wrong context when grabbing username --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0201dd6..3889c43 100644 --- a/src/index.js +++ b/src/index.js @@ -320,7 +320,7 @@ function createClient(options) { hash.update(packet.publicKey); var digest = mcHexDigest(hash); - joinServer(this.username, digest, accessToken, client.session.selectedProfile.id, cb); + joinServer(client.username, digest, accessToken, client.session.selectedProfile.id, cb); } function sendEncryptionKeyResponse() {