mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 14:13:45 -04:00
Unrecognized packetId error printing id in hex
This commit is contained in:
parent
11b11f0dc3
commit
38f46998e3
@ -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…
x
Reference in New Issue
Block a user