force compression

This commit is contained in:
Romain Beaumont 2015-10-12 18:59:57 +02:00
parent 0c738d1b74
commit 06770fc23f

View file

@ -14,6 +14,8 @@ function inject(serv,options)
namespace: UUID.namespace.dns,
name: client.username
});
client.write('set_compression', { threshold: 256 }); // Default threshold is 256
client.compressionThreshold = 256;
var player=new Player();
player._client=client;
for(var pluginName in playerPlugins) {