mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 14:13:45 -04:00
Fix server.js
This commit is contained in:
parent
cf4048d655
commit
d490134492
@ -29,7 +29,7 @@ Server.prototype.listen = function(port, host) {
|
||||
if(client.state === states.PLAY) {
|
||||
client.write('kick_disconnect', {reason: endReason});
|
||||
} else if(client.state === states.LOGIN) {
|
||||
client.write(0x00, {reason: endReason});
|
||||
client.write('disconnect', {reason: endReason});
|
||||
}
|
||||
client._end(endReason);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user