You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The packetIndexes.packetStates[direction].hasOwnProperty(event) check can just be removed. It doesn't matter if some non-packet events are added to the packetToParse object. There's basically just 'error' and 'session'.
Getting rid of the dependency in client.js will make things easier for cross version work by limiting the reading of packets definitions to serializer.js
The text was updated successfully, but these errors were encountered:
https://github.com/PrismarineJS/node-minecraft-protocol/blob/master/src/client.js#L37
The
packetIndexes.packetStates[direction].hasOwnProperty(event)
check can just be removed. It doesn't matter if some non-packet events are added to the packetToParse object. There's basically just 'error' and 'session'.Getting rid of the dependency in client.js will make things easier for cross version work by limiting the reading of packets definitions to serializer.js
The text was updated successfully, but these errors were encountered: