mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-30 14:41:27 -04:00
Fix proxy.js template string v2
This commit is contained in:
parent
c27a40cde2
commit
bbace6b62d
@ -88,7 +88,7 @@ srv.on('login', function (client) {
|
|||||||
}
|
}
|
||||||
/*if (client.state == states.PLAY && brokenPackets.indexOf(packetId.value) !== -1)
|
/*if (client.state == states.PLAY && brokenPackets.indexOf(packetId.value) !== -1)
|
||||||
{
|
{
|
||||||
console.log(`client<-server: raw packet`);
|
console.log(`client<-server: raw packet);
|
||||||
console.log(packetData);
|
console.log(packetData);
|
||||||
if (!endedClient)
|
if (!endedClient)
|
||||||
client.writeRaw(buffer);
|
client.writeRaw(buffer);
|
||||||
@ -102,7 +102,7 @@ srv.on('login', function (client) {
|
|||||||
var packetBuff = mc.protocol.createPacketBuffer(packetData.id, packetData.state, packetData, false);
|
var packetBuff = mc.protocol.createPacketBuffer(packetData.id, packetData.state, packetData, false);
|
||||||
if (buffertools.compare(buffer, packetBuff) != 0)
|
if (buffertools.compare(buffer, packetBuff) != 0)
|
||||||
{
|
{
|
||||||
console.log(`client->server: Error in packetId ${state}.0x${packetId.value.toString(16)}`);
|
console.log("client->server: Error in packetId " + state + ".0x" + packetId.value.toString(16));
|
||||||
console.log(buffer.toString('hex'));
|
console.log(buffer.toString('hex'));
|
||||||
console.log(packetBuff.toString('hex'));
|
console.log(packetBuff.toString('hex'));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user