mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-15 03:14:56 -05:00
fix autoversion
This commit is contained in:
parent
834c8785af
commit
0c097d6d63
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ module.exports = function(client, options) {
|
|||
debug('pinging',options.host);
|
||||
// TODO: use 0xfe ping instead for better compatibility/performance? https://github.com/deathcap/node-minecraft-ping
|
||||
ping(options, function(err, response) {
|
||||
if(err)
|
||||
client.emit('error',err);
|
||||
debug('ping response',response);
|
||||
// TODO: could also use ping pre-connect to save description, type, max players, etc.
|
||||
|
|
Loading…
Reference in a new issue