Skip to content

Fix nested beehive coordinate filtering#332

Open
yesidodo73 wants to merge 1 commit into
xGinko:masterfrom
yesidodo73:fix/nested-beehive-coordinate-filtering
Open

Fix nested beehive coordinate filtering#332
yesidodo73 wants to merge 1 commit into
xGinko:masterfrom
yesidodo73:fix/nested-beehive-coordinate-filtering

Conversation

@yesidodo73

Copy link
Copy Markdown

Fixed beehive coordinate filtering being skipped for some inventory and nested container items.

The WINDOW_ITEMS handler returned as soon as it encountered an empty slot. Since most inventories contain empty slots, any items after the first empty slot were never checked.

Coordinate data removed from beehives inside bundles or container items was also not propagated to the parent component. The nested item was modified, but the parent packet was not marked for re-encoding, so the original coordinate data could still be sent to the client.

The handler now skips empty slots instead of stopping the entire inventory scan, and propagates nested component changes so the updated item is written back and re-encoded.

Applied the same fix to both Folia and Legacy implementations.

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