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

Add support for InventoryClickEvent cursor #5308

Merged
merged 4 commits into from
Sep 26, 2023

Conversation

TheLimeGlass
Copy link
Collaborator

@TheLimeGlass TheLimeGlass commented Jan 2, 2023

Description

If the event is an InventoryClickEvent, it should return the cursor slot involved in the inventory click event.

Note: InventoryClickEvent#setCursor is deprecated as it causes inconsistencies with the client and server, so I believe keeping Player#setItemOnCursor as the main set changer is good.


Target Minecraft Versions: any
Requirements: none
Related Issues: #5050

@TheLimeGlass TheLimeGlass added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jan 2, 2023
TheLimeGlass and others added 2 commits February 21, 2023 20:11
Co-authored-by: Kiip <25848425+kiip1@users.noreply.github.com>
Co-authored-by: Kiip <25848425+kiip1@users.noreply.github.com>
@TheLimeGlass TheLimeGlass requested review from Moderocky, AyhamAl-Ali and APickledWalrus and removed request for kiip1 July 11, 2023 16:52
@Moderocky Moderocky changed the base branch from master to dev/feature September 18, 2023 10:00
@TheLimeGlass TheLimeGlass merged commit fd23bc0 into dev/feature Sep 26, 2023
6 checks passed
@TheLimeGlass TheLimeGlass deleted the feature/cursor-slot-event branch September 26, 2023 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants