update to 1.9-pre4, improve the proxy errors a bit

This commit is contained in:
Romain Beaumont 2016-02-27 18:10:11 +01:00
parent 96a1a6c8c4
commit 440a190780
3 changed files with 10 additions and 10 deletions

View file

@ -7,7 +7,7 @@ Parse and serialize minecraft packets, plus authentication and encryption.
## Features
* Supports Minecraft version 1.7.10, 1.8.8 and 1.9 (15w40b and 16w05b)
* Supports Minecraft version 1.7.10, 1.8.8 and 1.9 (15w40b and 1.9-pre4)
* Parses all packets and emits events with packet fields as JavaScript
objects.
* Send a packet by supplying fields as a JavaScript object.

View file

@ -132,10 +132,10 @@ srv.on('login', function(client) {
var packetBuff = client.serializer.createPacketBuffer({name:meta.name, params:packetData});
if(!bufferEqual(buffer, packetBuff)) {
console.log("client<-server: Error in packet " + meta.state + "." + meta.name);
console.log(buffer.toString('hex'));
console.log(packetBuff.toString('hex'));
console.log(buffer.length);
console.log(packetBuff.length);
console.log("received buffer",buffer.toString('hex'));
console.log("produced buffer",packetBuff.toString('hex'));
console.log("received length",buffer.length);
console.log("produced length",packetBuff.length);
}
/*if (client.state == states.PLAY && brokenPackets.indexOf(packetId.value) !== -1)
{
@ -152,10 +152,10 @@ srv.on('login', function(client) {
var packetBuff = targetClient.serializer.createPacketBuffer({name:meta.name, params:packetData});
if(!bufferEqual(buffer, packetBuff)) {
console.log("client->server: Error in packet " + meta.state + "." + meta.name);
console.log(buffer.toString('hex'));
console.log(packetBuff.toString('hex'));
console.log(buffer.length);
console.log(packetBuff.length);
console.log("received buffer",buffer.toString('hex'));
console.log("produced buffer",packetBuff.toString('hex'));
console.log("received length",buffer.length);
console.log("produced length",packetBuff.length);
}
});
targetClient.on('end', function() {

View file

@ -46,7 +46,7 @@
"endian-toggle": "0.0.0",
"lodash.get": "^4.1.2",
"lodash.merge": "^4.3.0",
"minecraft-data": "~1.1.0",
"minecraft-data": "~1.2.0",
"prismarine-nbt": "0.2.1",
"protodef": "^1.1.2",
"readable-stream": "^2.0.5",