mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-11 10:31:08 +00:00
update to nmp 0.16
This commit is contained in:
parent
3134633a87
commit
500616283d
2 changed files with 1 additions and 10 deletions
|
|
@ -24,7 +24,7 @@
|
|||
"dependencies": {
|
||||
"babel-runtime": "^5.4.4",
|
||||
"minecraft-data": "0.7.0",
|
||||
"minecraft-protocol": "^0.15.0",
|
||||
"minecraft-protocol": "^0.16.0",
|
||||
"mkdirp": "0.5.1",
|
||||
"moment": "^2.10.6",
|
||||
"node-dir": "~0.1.9",
|
||||
|
|
@ -38,7 +38,6 @@
|
|||
"request-promise": "^0.4.3",
|
||||
"requireindex": "~1.0.0",
|
||||
"spiralloop": "1.0.2",
|
||||
"uuid-1345": "~0.99.6",
|
||||
"vec3": "0.1.3"
|
||||
},
|
||||
"repository": {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ var path = require('path');
|
|||
var requireIndex = require('requireindex');
|
||||
var playerPlugins = requireIndex(path.join(__dirname,'..', 'playerPlugins'));
|
||||
var Player=require("../player");
|
||||
var UUID = require('uuid-1345');
|
||||
|
||||
module.exports = inject;
|
||||
|
||||
|
|
@ -12,13 +11,6 @@ function inject(serv,options)
|
|||
client.on('error',error => serv.emit('clientError',client,error)));
|
||||
|
||||
serv._server.on('login', async (client) => {
|
||||
if(!options["online-mode"])
|
||||
client.uuid=UUID.v3({
|
||||
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;
|
||||
Object.keys(playerPlugins)
|
||||
|
|
|
|||
Loading…
Reference in a new issue