mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 14:13:45 -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) {
|
function parsePacket(buffer, state, isServer, packetsToParse) {
|
||||||
if (state == null) state == states.PLAY;
|
if (state == null) state = states.PLAY;
|
||||||
var cursor = 0;
|
var cursor = 0;
|
||||||
var lengthField = readVarInt(buffer, 0);
|
var lengthField = readVarInt(buffer, 0);
|
||||||
if (!!!lengthField) return null;
|
if (!!!lengthField) return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user