mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
Add extra comment on why we are ignoring those states.
This commit is contained in:
parent
28ce425764
commit
378a382f90
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ module.exports = function (client, options) {
|
|||
client.on('disconnect', message => {
|
||||
if (!message.reason) { return }
|
||||
// Prevent the disconnect packet handler in the versionChecking code from triggering on PLAY or CONFIGURATION state disconnects
|
||||
// Making it so the handler only runs when a version related disconnect occurs.
|
||||
// Since version checking only happens during that HANDSHAKE / LOGIN state.
|
||||
if (client.state === states.PLAY | client.state === states.CONFIGURATION) { return }
|
||||
let parsed
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue