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 bundle inventory interactions not working properly #165

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

rymiel
Copy link
Collaborator

@rymiel rymiel commented Feb 3, 2025

Interactions with bundles have new InventoryAction enum entries in Paper (PaperMC/Paper#11902). Due to this, Bolt was not properly handling these interaction and always denied them. This meant that you could not use bundles to withdraw or deposit items even from containers you actually have access to.

This PR fixes these interactions. Due to this being recent API and in Paper only, EnumUtil has to be used and so it looks a bit messy.

Interactions with bundles have new InventoryAction enum entries in Paper
(PaperMC/Paper#11902). Due to this, Bolt was not
properly handling these interaction and always denied them. This meant
that you could not use bundles to withdraw or deposit items even from
containers you actually have access to.

This PR fixes these interactions. Due to this being recent API and in
Paper only, EnumUtil has to be used and so it looks a bit messy.
@rymiel rymiel added the bug Something isn't working label Feb 3, 2025
@rymiel rymiel requested a review from pop4959 February 3, 2025 21:05
@pop4959 pop4959 merged commit a98a1ed into pop4959:master Feb 3, 2025
1 check passed
@rymiel rymiel deleted the fix/bundle branch February 4, 2025 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants