feat: add debug logging for entity packet parsing
This commit is contained in:
@@ -451,6 +451,13 @@ void OverteClient::parseEntityPacket(const char* data, size_t len) {
|
|||||||
|
|
||||||
if (len < 1) return;
|
if (len < 1) return;
|
||||||
|
|
||||||
|
// Debug: dump first bytes of packet
|
||||||
|
std::cout << "[OverteClient] parseEntityPacket: " << len << " bytes, first 32: ";
|
||||||
|
for (size_t i = 0; i < std::min(len, size_t(32)); i++) {
|
||||||
|
printf("%02x ", (unsigned char)data[i]);
|
||||||
|
}
|
||||||
|
std::cout << std::endl;
|
||||||
|
|
||||||
unsigned char packetType = static_cast<unsigned char>(data[0]);
|
unsigned char packetType = static_cast<unsigned char>(data[0]);
|
||||||
|
|
||||||
// Entity packet types
|
// Entity packet types
|
||||||
|
|||||||
Reference in New Issue
Block a user