Skip to content

Commit

Permalink
Bedrock hotbar_slot type fix for 1.16.220 to 1.20.10 (#748)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
irkmandeer authored Aug 6, 2023
1 parent fecc3e9 commit 1c5fb1f
Show file tree
Hide file tree
Showing 42 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion data/bedrock/1.16.220/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.16.220/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.17.0/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.17.0/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.17.10/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.17.10/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.17.30/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.17.30/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.17.40/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.17.40/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.18.0/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.18.0/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.18.11/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.18.11/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.18.30/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.18.30/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.1/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.1/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.10/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.10/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.20/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.20/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.21/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.21/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.30/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.30/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.40/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.40/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.50/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.50/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.60/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.60/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.62/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.62/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.70/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.70/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.80/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.19.80/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.20.0/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.20.0/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/1.20.10/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@
},
{
"name": "hotbar_slot",
"type": "varint"
"type": "zigzag32"
},
{
"name": "held_item",
Expand Down
2 changes: 1 addition & 1 deletion data/bedrock/latest/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c5fb1f

Please sign in to comment.