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