mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-27 13:14:41 -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) {
|
||||
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…
x
Reference in New Issue
Block a user