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

Correct update cursor #11554

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

lynxplay
Copy link
Contributor

@lynxplay lynxplay commented Nov 1, 2024

Spigot uses a no longer valid ClientboundContainerSetSlotPacket with the
slot -1, which would update the carried stack in versions <=1.21.1 but
now leads to an IOOB.
1.21.2 instead introduced the ClientboundSetCursorItemPacket, which this
patch uses instead.


Download the paperclip jar for this pull request: paper-11554.zip

Spigot uses a no longer valid ClientboundContainerSetSlotPacket with the
slot -1, which would update the carried stack in versions <=1.21.1 but
now leads to an IOOB.
1.21.2 instead introduced the ClientboundSetCursorItemPacket, which this
patch uses instead.
@lynxplay lynxplay requested a review from a team as a code owner November 1, 2024 14:01
@lynxplay lynxplay added the build-pr-jar Enables a workflow to build Paperclip jars on the pull request. label Nov 1, 2024
@lynxplay lynxplay linked an issue Nov 1, 2024 that may be closed by this pull request
@dawon
Copy link
Contributor

dawon commented Nov 1, 2024

This seems to resolve the issue, thank you! :-)

@lynxplay lynxplay merged commit 85c870e into PaperMC:master Nov 1, 2024
6 checks passed
@lynxplay lynxplay deleted the bugfix/wrong-set-cursor-packet branch November 1, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-pr-jar Enables a workflow to build Paperclip jars on the pull request.
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

Cancelling InventoryClickEvent kicks the player from the server
4 participants