Fix nullable state code not working.

This commit is contained in:
Robin Lambertz 2014-05-14 23:49:37 +02:00
parent 9181fe9517
commit f80b2aa1b3

View File

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