mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-30 22:51:23 -04:00
Update client connect() for options move compatibility
This commit is contained in:
parent
f17de6410b
commit
2e2a213076
@ -218,6 +218,7 @@ class Client extends EventEmitter
|
|||||||
// TCP/IP-specific (not generic Stream) method for backwards-compatibility
|
// TCP/IP-specific (not generic Stream) method for backwards-compatibility
|
||||||
connect(port, host) {
|
connect(port, host) {
|
||||||
var options = {port, host};
|
var options = {port, host};
|
||||||
|
if (!this.options) this.options = options;
|
||||||
require('./client/tcp_dns')(this, options);
|
require('./client/tcp_dns')(this, options);
|
||||||
options.connect(this);
|
options.connect(this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user