mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-30 14:41:27 -04:00
trying to fix autoversion in online mode
This commit is contained in:
parent
aa96950ac5
commit
2d4f4a05e1
@ -53,6 +53,7 @@ module.exports = function(client, options) {
|
|||||||
|
|
||||||
// Finished configuring client object, let connection proceed
|
// Finished configuring client object, let connection proceed
|
||||||
client.emit('connect_allowed');
|
client.emit('connect_allowed');
|
||||||
|
client.wait_connect = false;
|
||||||
});
|
});
|
||||||
return client;
|
return client;
|
||||||
};
|
};
|
||||||
|
@ -19,6 +19,8 @@ module.exports=createClient;
|
|||||||
function createClient(options) {
|
function createClient(options) {
|
||||||
assert.ok(options, "options is required");
|
assert.ok(options, "options is required");
|
||||||
assert.ok(options.username, "username is required");
|
assert.ok(options.username, "username is required");
|
||||||
|
if(!options.version)
|
||||||
|
options.version=false;
|
||||||
|
|
||||||
// TODO: avoid setting default version if autoVersion is enabled
|
// TODO: avoid setting default version if autoVersion is enabled
|
||||||
const optVersion = options.version || require("./version").defaultVersion;
|
const optVersion = options.version || require("./version").defaultVersion;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user