mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
createServer: allow empty options
This commit is contained in:
parent
c53f31af0e
commit
2434b49528
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -19,6 +19,7 @@ module.exports = {
|
|||
};
|
||||
|
||||
function createServer(options) {
|
||||
options = options || {};
|
||||
var port = options.port != null ?
|
||||
options.port :
|
||||
options['server-port'] != null ?
|
||||
|
@ -123,7 +124,7 @@ function createServer(options) {
|
|||
verifyToken: client.verifyToken
|
||||
});
|
||||
} else {
|
||||
loginClient();
|
||||
loginClient();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue