From 1c5fb1f2517386b546c77b43e7f164943a338efa Mon Sep 17 00:00:00 2001 From: irkmandeer <37556625+irkmandeer@users.noreply.github.com> Date: Mon, 7 Aug 2023 01:19:07 +0200 Subject: [PATCH] Bedrock hotbar_slot type fix for 1.16.220 to 1.20.10 (#748) * TransactionUseItem hotbar_slot encoding fix 1.20.x * TransactionUseItem hotbar_slot encoding fix 1.19.x * TransactionUseItem hotbar_slot encoding fix 1.18.x * TransactionUseItem hotbar_slot encoding fix 1.17.x * TransactionUseItem hotbar_slot encoding fix 1.16.220 Skipped 1.16.201 and 1.16.210. They are not playable due to protocol errors. --- data/bedrock/1.16.220/protocol.json | 2 +- data/bedrock/1.16.220/types.yml | 2 +- data/bedrock/1.17.0/protocol.json | 2 +- data/bedrock/1.17.0/types.yml | 2 +- data/bedrock/1.17.10/protocol.json | 2 +- data/bedrock/1.17.10/types.yml | 2 +- data/bedrock/1.17.30/protocol.json | 2 +- data/bedrock/1.17.30/types.yml | 2 +- data/bedrock/1.17.40/protocol.json | 2 +- data/bedrock/1.17.40/types.yml | 2 +- data/bedrock/1.18.0/protocol.json | 2 +- data/bedrock/1.18.0/types.yml | 2 +- data/bedrock/1.18.11/protocol.json | 2 +- data/bedrock/1.18.11/types.yml | 2 +- data/bedrock/1.18.30/protocol.json | 2 +- data/bedrock/1.18.30/types.yml | 2 +- data/bedrock/1.19.1/protocol.json | 2 +- data/bedrock/1.19.1/types.yml | 2 +- data/bedrock/1.19.10/protocol.json | 2 +- data/bedrock/1.19.10/types.yml | 2 +- data/bedrock/1.19.20/protocol.json | 2 +- data/bedrock/1.19.20/types.yml | 2 +- data/bedrock/1.19.21/protocol.json | 2 +- data/bedrock/1.19.21/types.yml | 2 +- data/bedrock/1.19.30/protocol.json | 2 +- data/bedrock/1.19.30/types.yml | 2 +- data/bedrock/1.19.40/protocol.json | 2 +- data/bedrock/1.19.40/types.yml | 2 +- data/bedrock/1.19.50/protocol.json | 2 +- data/bedrock/1.19.50/types.yml | 2 +- data/bedrock/1.19.60/protocol.json | 2 +- data/bedrock/1.19.60/types.yml | 2 +- data/bedrock/1.19.62/protocol.json | 2 +- data/bedrock/1.19.62/types.yml | 2 +- data/bedrock/1.19.70/protocol.json | 2 +- data/bedrock/1.19.70/types.yml | 2 +- data/bedrock/1.19.80/protocol.json | 2 +- data/bedrock/1.19.80/types.yml | 2 +- data/bedrock/1.20.0/protocol.json | 2 +- data/bedrock/1.20.0/types.yml | 2 +- data/bedrock/1.20.10/protocol.json | 2 +- data/bedrock/latest/types.yml | 2 +- 42 files changed, 42 insertions(+), 42 deletions(-) diff --git a/data/bedrock/1.16.220/protocol.json b/data/bedrock/1.16.220/protocol.json index e6484a120..f823fc47b 100644 --- a/data/bedrock/1.16.220/protocol.json +++ b/data/bedrock/1.16.220/protocol.json @@ -944,7 +944,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.16.220/types.yml b/data/bedrock/1.16.220/types.yml index 6e4152c62..07267fc85 100644 --- a/data/bedrock/1.16.220/types.yml +++ b/data/bedrock/1.16.220/types.yml @@ -471,7 +471,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.17.0/protocol.json b/data/bedrock/1.17.0/protocol.json index 5679a90f6..befa0d67c 100644 --- a/data/bedrock/1.17.0/protocol.json +++ b/data/bedrock/1.17.0/protocol.json @@ -947,7 +947,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.17.0/types.yml b/data/bedrock/1.17.0/types.yml index 6587c6d51..886d0dac1 100644 --- a/data/bedrock/1.17.0/types.yml +++ b/data/bedrock/1.17.0/types.yml @@ -474,7 +474,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.17.10/protocol.json b/data/bedrock/1.17.10/protocol.json index 5a9aad72e..ff8006ada 100644 --- a/data/bedrock/1.17.10/protocol.json +++ b/data/bedrock/1.17.10/protocol.json @@ -947,7 +947,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.17.10/types.yml b/data/bedrock/1.17.10/types.yml index 7f8897db4..a43d3684c 100644 --- a/data/bedrock/1.17.10/types.yml +++ b/data/bedrock/1.17.10/types.yml @@ -474,7 +474,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.17.30/protocol.json b/data/bedrock/1.17.30/protocol.json index 803ee18f6..6e1abb491 100644 --- a/data/bedrock/1.17.30/protocol.json +++ b/data/bedrock/1.17.30/protocol.json @@ -947,7 +947,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.17.30/types.yml b/data/bedrock/1.17.30/types.yml index ec0588dfd..a6a914103 100644 --- a/data/bedrock/1.17.30/types.yml +++ b/data/bedrock/1.17.30/types.yml @@ -474,7 +474,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.17.40/protocol.json b/data/bedrock/1.17.40/protocol.json index 1146db208..6f2da7305 100644 --- a/data/bedrock/1.17.40/protocol.json +++ b/data/bedrock/1.17.40/protocol.json @@ -947,7 +947,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.17.40/types.yml b/data/bedrock/1.17.40/types.yml index 5c9425496..0c9b2cb8a 100644 --- a/data/bedrock/1.17.40/types.yml +++ b/data/bedrock/1.17.40/types.yml @@ -474,7 +474,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.18.0/protocol.json b/data/bedrock/1.18.0/protocol.json index df43ef0a3..5c42db5f2 100644 --- a/data/bedrock/1.18.0/protocol.json +++ b/data/bedrock/1.18.0/protocol.json @@ -947,7 +947,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.18.0/types.yml b/data/bedrock/1.18.0/types.yml index 069c4057b..15920c181 100644 --- a/data/bedrock/1.18.0/types.yml +++ b/data/bedrock/1.18.0/types.yml @@ -474,7 +474,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.18.11/protocol.json b/data/bedrock/1.18.11/protocol.json index 9226ecd22..dcd64e19a 100644 --- a/data/bedrock/1.18.11/protocol.json +++ b/data/bedrock/1.18.11/protocol.json @@ -947,7 +947,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.18.11/types.yml b/data/bedrock/1.18.11/types.yml index 752e03e5b..cb25449a8 100644 --- a/data/bedrock/1.18.11/types.yml +++ b/data/bedrock/1.18.11/types.yml @@ -478,7 +478,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.18.30/protocol.json b/data/bedrock/1.18.30/protocol.json index 62d521274..fa8e3bda1 100644 --- a/data/bedrock/1.18.30/protocol.json +++ b/data/bedrock/1.18.30/protocol.json @@ -951,7 +951,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.18.30/types.yml b/data/bedrock/1.18.30/types.yml index 3f28b97c6..899dd01d1 100644 --- a/data/bedrock/1.18.30/types.yml +++ b/data/bedrock/1.18.30/types.yml @@ -486,7 +486,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.1/protocol.json b/data/bedrock/1.19.1/protocol.json index 2b34d50db..c92886d96 100644 --- a/data/bedrock/1.19.1/protocol.json +++ b/data/bedrock/1.19.1/protocol.json @@ -951,7 +951,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.1/types.yml b/data/bedrock/1.19.1/types.yml index 4fc3d8d12..0b7183180 100644 --- a/data/bedrock/1.19.1/types.yml +++ b/data/bedrock/1.19.1/types.yml @@ -486,7 +486,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.10/protocol.json b/data/bedrock/1.19.10/protocol.json index e22d8485b..78a14333c 100644 --- a/data/bedrock/1.19.10/protocol.json +++ b/data/bedrock/1.19.10/protocol.json @@ -951,7 +951,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.10/types.yml b/data/bedrock/1.19.10/types.yml index 518e424a5..4505c7d36 100644 --- a/data/bedrock/1.19.10/types.yml +++ b/data/bedrock/1.19.10/types.yml @@ -486,7 +486,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.20/protocol.json b/data/bedrock/1.19.20/protocol.json index 02c540fde..c9e895821 100644 --- a/data/bedrock/1.19.20/protocol.json +++ b/data/bedrock/1.19.20/protocol.json @@ -989,7 +989,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.20/types.yml b/data/bedrock/1.19.20/types.yml index 5007f71db..468c58169 100644 --- a/data/bedrock/1.19.20/types.yml +++ b/data/bedrock/1.19.20/types.yml @@ -493,7 +493,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.21/protocol.json b/data/bedrock/1.19.21/protocol.json index 02c540fde..c9e895821 100644 --- a/data/bedrock/1.19.21/protocol.json +++ b/data/bedrock/1.19.21/protocol.json @@ -989,7 +989,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.21/types.yml b/data/bedrock/1.19.21/types.yml index 5007f71db..468c58169 100644 --- a/data/bedrock/1.19.21/types.yml +++ b/data/bedrock/1.19.21/types.yml @@ -493,7 +493,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.30/protocol.json b/data/bedrock/1.19.30/protocol.json index 1cd0b3bbe..39029c7ad 100644 --- a/data/bedrock/1.19.30/protocol.json +++ b/data/bedrock/1.19.30/protocol.json @@ -989,7 +989,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.30/types.yml b/data/bedrock/1.19.30/types.yml index f56c4eef4..84fdbb949 100644 --- a/data/bedrock/1.19.30/types.yml +++ b/data/bedrock/1.19.30/types.yml @@ -493,7 +493,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.40/protocol.json b/data/bedrock/1.19.40/protocol.json index e4ec0a6ab..a95f1234c 100644 --- a/data/bedrock/1.19.40/protocol.json +++ b/data/bedrock/1.19.40/protocol.json @@ -1041,7 +1041,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.40/types.yml b/data/bedrock/1.19.40/types.yml index bb98d78a9..cac5f511c 100644 --- a/data/bedrock/1.19.40/types.yml +++ b/data/bedrock/1.19.40/types.yml @@ -504,7 +504,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.50/protocol.json b/data/bedrock/1.19.50/protocol.json index f15e822d0..ee0f7bafe 100644 --- a/data/bedrock/1.19.50/protocol.json +++ b/data/bedrock/1.19.50/protocol.json @@ -1041,7 +1041,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.50/types.yml b/data/bedrock/1.19.50/types.yml index 274f51824..62ae4b2e4 100644 --- a/data/bedrock/1.19.50/types.yml +++ b/data/bedrock/1.19.50/types.yml @@ -508,7 +508,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.60/protocol.json b/data/bedrock/1.19.60/protocol.json index e31b61157..bfee47ac0 100644 --- a/data/bedrock/1.19.60/protocol.json +++ b/data/bedrock/1.19.60/protocol.json @@ -1041,7 +1041,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.60/types.yml b/data/bedrock/1.19.60/types.yml index b22c9705d..0ac5fcbcf 100644 --- a/data/bedrock/1.19.60/types.yml +++ b/data/bedrock/1.19.60/types.yml @@ -508,7 +508,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.62/protocol.json b/data/bedrock/1.19.62/protocol.json index ad84dae38..242ed3036 100644 --- a/data/bedrock/1.19.62/protocol.json +++ b/data/bedrock/1.19.62/protocol.json @@ -1041,7 +1041,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.62/types.yml b/data/bedrock/1.19.62/types.yml index cddd71e91..efe8805f4 100644 --- a/data/bedrock/1.19.62/types.yml +++ b/data/bedrock/1.19.62/types.yml @@ -508,7 +508,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.70/protocol.json b/data/bedrock/1.19.70/protocol.json index 93eeffabb..b705dd7b0 100644 --- a/data/bedrock/1.19.70/protocol.json +++ b/data/bedrock/1.19.70/protocol.json @@ -1041,7 +1041,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.70/types.yml b/data/bedrock/1.19.70/types.yml index 539cd69f4..b6367e917 100644 --- a/data/bedrock/1.19.70/types.yml +++ b/data/bedrock/1.19.70/types.yml @@ -512,7 +512,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.19.80/protocol.json b/data/bedrock/1.19.80/protocol.json index ea3d9b66f..1a4794acf 100644 --- a/data/bedrock/1.19.80/protocol.json +++ b/data/bedrock/1.19.80/protocol.json @@ -1041,7 +1041,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.19.80/types.yml b/data/bedrock/1.19.80/types.yml index c9e4b5a60..6f5fc1583 100644 --- a/data/bedrock/1.19.80/types.yml +++ b/data/bedrock/1.19.80/types.yml @@ -512,7 +512,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.20.0/protocol.json b/data/bedrock/1.20.0/protocol.json index e3da44fe9..5928e7449 100644 --- a/data/bedrock/1.20.0/protocol.json +++ b/data/bedrock/1.20.0/protocol.json @@ -1041,7 +1041,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/1.20.0/types.yml b/data/bedrock/1.20.0/types.yml index b6aea3340..9bb16c839 100644 --- a/data/bedrock/1.20.0/types.yml +++ b/data/bedrock/1.20.0/types.yml @@ -512,7 +512,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item diff --git a/data/bedrock/1.20.10/protocol.json b/data/bedrock/1.20.10/protocol.json index 2e570fb05..a3ce69885 100644 --- a/data/bedrock/1.20.10/protocol.json +++ b/data/bedrock/1.20.10/protocol.json @@ -1042,7 +1042,7 @@ }, { "name": "hotbar_slot", - "type": "varint" + "type": "zigzag32" }, { "name": "held_item", diff --git a/data/bedrock/latest/types.yml b/data/bedrock/latest/types.yml index 26887a873..8ee6221b7 100644 --- a/data/bedrock/latest/types.yml +++ b/data/bedrock/latest/types.yml @@ -514,7 +514,7 @@ TransactionUseItem: face: zigzag32 # HotBarSlot is the hot bar slot that the player was holding while clicking the block. It should be used # to ensure that the hot bar slot and held item are correctly synchronised with the server. - hotbar_slot: varint + hotbar_slot: zigzag32 # HeldItem is the item that was held to interact with the block. The server should check if this item # is actually present in the HotBarSlot. held_item: Item