mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-10-02 23:52:07 -04:00
Merge pull request #283 from rom1504/patch-1
Enable nmp server compression
This commit is contained in:
commit
a80765549c
@ -200,8 +200,8 @@ function createServer(options) {
|
|||||||
if(onlineMode == false || isException) {
|
if(onlineMode == false || isException) {
|
||||||
client.uuid = "0-0-0-0-0";
|
client.uuid = "0-0-0-0-0";
|
||||||
}
|
}
|
||||||
//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