mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-05-07 03:40:27 -04:00
fix compression in proxy, fix #292
This commit is contained in:
parent
f45c6dff49
commit
23b077b76f
1 changed files with 4 additions and 3 deletions
|
@ -122,10 +122,11 @@ srv.on('login', function(client) {
|
|||
targetClient.state + "." + meta.name + " :" +
|
||||
JSON.stringify(data));
|
||||
}
|
||||
if(!endedClient)
|
||||
if(!endedClient) {
|
||||
client.write(meta.name, data);
|
||||
if (meta.name === 'set_compression' || meta.name === 'compression') // Set compression
|
||||
client.compressionThreshold = data.threshold;
|
||||
if (meta.name === 'set_compression') // Set compression
|
||||
client.compressionThreshold = data.threshold;
|
||||
}
|
||||
}
|
||||
});
|
||||
var bufferEqual = require('buffer-equal');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue