Skip to content

Fix pick_item_from_block packet - #397

Open
Nuulz wants to merge 1 commit into
azalea-rs:mainfrom
Nuulz:fix-pick-item-from-block
Open

Nuulz wants to merge 1 commit into
azalea-rs:mainfrom
Nuulz:fix-pick-item-from-block

Conversation

@Nuulz

@Nuulz Nuulz commented Oct 16, 2026

Copy link
Copy Markdown

Fixes #396. Matches the 26.2 codec: BlockPos + include_data bool.

Tested on a local vanilla 26.2 server, creative mode, picking a diamond block:

  • before: kicked with Failed to decode packet 'serverbound/minecraft:pick_item_from_block'
  • after: SelectedItem is {count: 1, id: "minecraft:diamond_block"}, bot stays connected

Nothing in azalea sends this packet internally. Added a roundtrip test.

Since 1.21.4 the packet carries the block position and an include_data bool,
not a slot varint.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ServerboundPickItemFromBlock uses the pre-1.21.4 format, server kicks the bot

1 participant