Fix proxy.js template string v2

This commit is contained in:
roblabla 2015-03-06 23:14:36 +00:00
parent c27a40cde2
commit bbace6b62d

View File

@ -88,7 +88,7 @@ srv.on('login', function (client) {
}
/*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);
if (!endedClient)
client.writeRaw(buffer);
@ -102,7 +102,7 @@ srv.on('login', function (client) {
var packetBuff = mc.protocol.createPacketBuffer(packetData.id, packetData.state, packetData, false);
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(packetBuff.toString('hex'));
}