mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 05:35:56 -04:00
Quickfix for proxy example to properly handle compression changes
This commit is contained in:
parent
790aaaad1a
commit
ad2ad01787
@ -125,6 +125,8 @@ srv.on('login', function(client) {
|
||||
}
|
||||
if(!endedClient)
|
||||
client.write(packet.id, packet);
|
||||
if (packet.id === 0x46) // Set compression
|
||||
client.compressionThreshold = packet.threshold;
|
||||
}
|
||||
});
|
||||
var buffertools = require('buffertools');
|
||||
|
Loading…
x
Reference in New Issue
Block a user