mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 13:45:37 -04:00
1.7 disables compressing the whole protocol
This commit is contained in:
parent
35bc9282bc
commit
99f7d1b29f
@ -253,8 +253,10 @@ function createServer(options) {
|
|||||||
if(onlineMode == false || isException) {
|
if(onlineMode == false || isException) {
|
||||||
client.uuid = nameToMcOfflineUUID(client.username);
|
client.uuid = nameToMcOfflineUUID(client.username);
|
||||||
}
|
}
|
||||||
|
if (version.version >= 27) { // 14w28a (27) added whole-protocol compression (http://wiki.vg/Protocol_History#14w28a), earlier versions per-packet compressed TODO: refactor into minecraft-data
|
||||||
client.write('compress', { threshold: 256 }); // Default threshold is 256
|
client.write('compress', { threshold: 256 }); // Default threshold is 256
|
||||||
client.compressionThreshold = 256;
|
client.compressionThreshold = 256;
|
||||||
|
}
|
||||||
client.write('success', {uuid: client.uuid, username: client.username});
|
client.write('success', {uuid: client.uuid, username: client.username});
|
||||||
client.state = states.PLAY;
|
client.state = states.PLAY;
|
||||||
loggedIn = true;
|
loggedIn = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user