mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 05:35:56 -04:00
createServer: allow empty options
This commit is contained in:
parent
c53f31af0e
commit
2434b49528
3
index.js
3
index.js
@ -19,6 +19,7 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function createServer(options) {
|
function createServer(options) {
|
||||||
|
options = options || {};
|
||||||
var port = options.port != null ?
|
var port = options.port != null ?
|
||||||
options.port :
|
options.port :
|
||||||
options['server-port'] != null ?
|
options['server-port'] != null ?
|
||||||
@ -123,7 +124,7 @@ function createServer(options) {
|
|||||||
verifyToken: client.verifyToken
|
verifyToken: client.verifyToken
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
loginClient();
|
loginClient();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user