mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
Fix nullable state code not working.
This commit is contained in:
parent
9181fe9517
commit
f80b2aa1b3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user