From f4faca4da9a3ae77a6bf462ae9c87eb9a221c23a Mon Sep 17 00:00:00 2001 From: Breno Xavier Date: Tue, 30 Jan 2024 08:37:04 -0300 Subject: [PATCH] Fixing incorrect arrays in protocol 1.6.4. --- data/pc/1.6.4/protocol.json | 75 ++++++++----------------------------- 1 file changed, 16 insertions(+), 59 deletions(-) diff --git a/data/pc/1.6.4/protocol.json b/data/pc/1.6.4/protocol.json index 0cf4a6afa..364701d54 100644 --- a/data/pc/1.6.4/protocol.json +++ b/data/pc/1.6.4/protocol.json @@ -756,10 +756,6 @@ "packet_entity_destroy": [ "container", [ - { - "name": "entityCount", - "type": "i8" - }, { "name": "entityIds", "type": [ @@ -1061,16 +1057,11 @@ "type": "u16" }, { - "name": "compressedSize", - "type": "i32" - }, - { - "name": "compressedData", + "name": "compressedChunkData", "type": [ - "array", + "buffer", { - "countType": "i32", - "type": "u8" + "countType": "i32" } ] } @@ -1625,10 +1616,6 @@ "name": "windowId", "type": "i8" }, - { - "name": "count", - "type": "i16" - }, { "name": "items", "type": [ @@ -1745,17 +1732,12 @@ "name": "itemId", "type": "i16" }, - { - "name": "textLength", - "type": "i16" - }, { "name": "text", "type": [ - "array", + "buffer", { - "countType": "i8", - "type": "i8" + "countType": "i16" } ] } @@ -2057,17 +2039,12 @@ "name": "channel", "type": "string" }, - { - "name": "length", - "type": "i16" - }, { "name": "data", "type": [ - "array", + "buffer", { - "countType": "i8", - "type": "i8" + "countType": "i16" } ] } @@ -2076,31 +2053,21 @@ "packet_encryption_key_response": [ "container", [ - { - "name": "sharedSecretLength", - "type": "i16" - }, { "name": "sharedSecret", "type": [ - "array", + "buffer", { - "countType": "i8", - "type": "i8" + "countType": "i16" } ] }, { - "name": "verifyTokenLength", - "type": "i16" - }, - { - "name": "verifyTokenResponse", + "name": "verifyToken", "type": [ - "array", + "buffer", { - "countType": "i8", - "type": "i8" + "countType": "i16" } ] } @@ -2113,31 +2080,21 @@ "name": "serverId", "type": "string" }, - { - "name": "publicKeyLength", - "type": "i16" - }, { "name": "publicKey", "type": [ - "array", + "buffer", { - "countType": "i32", - "type": "i8" + "countType": "i16" } ] }, - { - "name": "verifyTokenLength", - "type": "i16" - }, { "name": "verifyToken", "type": [ - "array", + "buffer", { - "countType": "i32", - "type": "i8" + "countType": "i16" } ] }