Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix includeData in pick events #4232

Open
wants to merge 2 commits into
base: 1.21.4
Choose a base branch
from

Conversation

apple502j
Copy link
Contributor

Fixes an issue where the game mode check for includeData was omitted. Vanilla only allows includeData if the player is in Creative mode. Only affects the snapshots.

Also fixes several javadoc issues.

@apple502j apple502j added bug Something isn't working merge me please Pull requests that are ready to merge small change labels Nov 15, 2024
@haykam821
Copy link
Contributor

Is the include data flag set only for creative players by the client? If any player can request data to be included, I think the current behavior works well, just like how block interaction events are invoked for spectators. The parameter name and documentation could be changed to make the onus of authorization checking a bit more clear, though.

@apple502j
Copy link
Contributor Author

Spectators can interact with chests; vanilla getPickedItem is only called for Creative players.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working merge me please Pull requests that are ready to merge small change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants