mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
Merge pull request #351 from deathcap/mc17
[WIP] 1.7 protocol support in node-minecraft-protocol
This commit is contained in:
commit
4806e48aff
1 changed files with 4 additions and 2 deletions
|
@ -253,8 +253,10 @@ function createServer(options) {
|
|||
if(onlineMode == false || isException) {
|
||||
client.uuid = nameToMcOfflineUUID(client.username);
|
||||
}
|
||||
client.write('compress', { threshold: 256 }); // Default threshold is 256
|
||||
client.compressionThreshold = 256;
|
||||
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.compressionThreshold = 256;
|
||||
}
|
||||
client.write('success', {uuid: client.uuid, username: client.username});
|
||||
client.state = states.PLAY;
|
||||
loggedIn = true;
|
||||
|
|
Loading…
Reference in a new issue