mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
createServer: allow empty options
This commit is contained in:
parent
c53f31af0e
commit
2434b49528
1
index.js
1
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 ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user