mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-10-02 15:40:18 -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)
|
if(!endedClient)
|
||||||
client.write(packet.id, packet);
|
client.write(packet.id, packet);
|
||||||
|
if (packet.id === 0x46) // Set compression
|
||||||
|
client.compressionThreshold = packet.threshold;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var buffertools = require('buffertools');
|
var buffertools = require('buffertools');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user