mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 13:45:37 -04:00
fix compression in proxy, fix #292
This commit is contained in:
parent
f45c6dff49
commit
23b077b76f
@ -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…
x
Reference in New Issue
Block a user