mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 14:13:45 -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
|
||||
connect(port, host) {
|
||||
var options = {port, host};
|
||||
if (!this.options) this.options = options;
|
||||
require('./client/tcp_dns')(this, options);
|
||||
options.connect(this);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user