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;