mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
update to 1.9-pre4, improve the proxy errors a bit
This commit is contained in:
parent
96a1a6c8c4
commit
440a190780
3 changed files with 10 additions and 10 deletions
|
@ -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.
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue