mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-03-28 05:00:48 -04:00
Unrecognized packetId error printing id in hex
This commit is contained in:
parent
11b11f0dc3
commit
38f46998e3
1 changed files with 1 additions and 1 deletions
|
@ -1239,7 +1239,7 @@ function parsePacket(buffer, isServer) {
|
|||
var packetInfo = get(packetId, isServer);
|
||||
if (packetInfo == null) {
|
||||
return {
|
||||
error: new Error("Unrecognized packetId: " + packetId)
|
||||
error: new Error("Unrecognized packetId: " + packetId + " (0x" + packetId.toString(16) + ")")
|
||||
}
|
||||
}
|
||||
var i, fieldInfo, read, readResults;
|
||||
|
|
Loading…
Add table
Reference in a new issue