mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
fix autoversion
This commit is contained in:
parent
834c8785af
commit
0c097d6d63
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ 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) {
|
||||
client.emit('error',err);
|
||||
if(err)
|
||||
client.emit('error',err);
|
||||
debug('ping response',response);
|
||||
// TODO: could also use ping pre-connect to save description, type, max players, etc.
|
||||
const motd = response.description;
|
||||
|
|
Loading…
Reference in a new issue