-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix cursor item being lost when PlayerDropItemEvent is cancelled and … #12475
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
base: main
Are you sure you want to change the base?
Fix cursor item being lost when PlayerDropItemEvent is cancelled and … #12475
Conversation
Listen to InventoryClickEvent instead and cancel it if the click type is DROP |
What? The event is cancellable for a reason and this is clearly a wrong implementation, why would this be a proper fix? |
No no, you're right. Your fix would be a welcome change, I was just suggesting a workaround for the time being but I probably should've said that |
Oh I see, thanks for the suggestion, I have it already fixed in our paper
fork and decided to upstream the change :)
Blue Bandit ***@***.***> schrieb am Fr., 25. Apr. 2025, 05:22:
… *B1ue-Bandit* left a comment (PaperMC/Paper#12475)
<#12475 (comment)>
No no, you're right. Your fix would be a welcome change, I was just
suggesting a workaround for the time being but I probably should've said
that
—
Reply to this email directly, view it on GitHub
<#12475 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOKAS7ZC5RUGCWKQD5LJYW323GTAZAVCNFSM6AAAAAB32PN2VWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRZGI4DQMJQGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This only resolves the issue when dropping the entire stack on cursor. |
…the player inventory is full See this video for a tutorial on how to reproduce this issue: https://youtu.be/xonJe2S7jQ8. Note that you also need to have the PlayerDropItemEvent cancelled in the test plugin.
c1798f0
to
15073e2
Compare
A question, what if player quit the game with full inventory and items on cursor? will them drop or just disappear |
@Clexus The item will be lost, I also noticed something similar happening when using the bundle item. |
…the player inventory is full
See this video for a tutorial on how to reproduce this issue: https://youtu.be/xonJe2S7jQ8. Note that you also need to have the PlayerDropItemEvent cancelled in the test plugin.