From f80b2aa1b3b1ba9db93a408e2db5a060953b8c96 Mon Sep 17 00:00:00 2001 From: Robin Lambertz Date: Wed, 14 May 2014 23:49:37 +0200 Subject: [PATCH] Fix nullable state code not working. --- lib/protocol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/protocol.js b/lib/protocol.js index da12f18..13e43ac 100644 --- a/lib/protocol.js +++ b/lib/protocol.js @@ -1284,7 +1284,7 @@ function createPacketBuffer(packetId, state, params, isServer) { } function parsePacket(buffer, state, isServer, packetsToParse) { - if (state == null) state == states.PLAY; + if (state == null) state = states.PLAY; var cursor = 0; var lengthField = readVarInt(buffer, 0); if (!!!lengthField) return null;