mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 05:35:56 -04:00
Pass options to all src/client/*, for consistency
This commit is contained in:
parent
fe327c85e1
commit
cf5f8c1c4c
@ -1,4 +1,4 @@
|
||||
module.exports = function(client) {
|
||||
module.exports = function(client, options) {
|
||||
client.once("compress", onCompressionRequest);
|
||||
client.on("set_compression", onCompressionRequest);
|
||||
|
||||
|
@ -3,7 +3,7 @@ var yggserver = require('yggdrasil').server({});
|
||||
var ursa=require("../ursa");
|
||||
var debug = require("../debug");
|
||||
|
||||
module.exports = function(client) {
|
||||
module.exports = function(client, options) {
|
||||
client.once('encryption_begin', onEncryptionKeyRequest);
|
||||
|
||||
function onEncryptionKeyRequest(packet) {
|
||||
|
@ -26,9 +26,9 @@ function createClient(options) {
|
||||
tcp_dns(client, options);
|
||||
setProtocol(client, options);
|
||||
keepalive(client, options);
|
||||
encrypt(client);
|
||||
play(client);
|
||||
compress(client);
|
||||
encrypt(client, options);
|
||||
play(client, options);
|
||||
compress(client, options);
|
||||
caseCorrect(client, options);
|
||||
|
||||
return client;
|
||||
|
Loading…
x
Reference in New Issue
Block a user