Skip to content

Update BlockItemPacketRewriter1_9.java#699

Open
Term4 wants to merge 1 commit into
ViaVersion:masterfrom
Term4:set_player_inventory_fix
Open

Update BlockItemPacketRewriter1_9.java#699
Term4 wants to merge 1 commit into
ViaVersion:masterfrom
Term4:set_player_inventory_fix

Conversation

@Term4

@Term4 Term4 commented Jun 25, 2026

Copy link
Copy Markdown

Problem
1.21.2, servers can update a single player-inventory slot via ClientboundSetPlayerInventory. ViaBackwards maps that to CONTAINER_SET_SLOT with window id -2

The 1.8 client's handleSetSlot only handles window -1, 0, and the oopen container's id. No -2 case, so these updates are silently dropped. This leads to the inventory only resyncing on a full window refresh (when a player opens and closes their inventory). Any server that uses this packet for inventorry updates (AHEM Minestom, but also some edge cases in vanilla, or custom vanilla servers) have this issue.

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.

1 participant