Skip to content

Detect rebound middle click clone actions in survival - #14249

Open
TiggerTakkyTTT wants to merge 2 commits into
PaperMC:mainfrom
TiggerTakkyTTT:fix/11465-middle-click-survival
Open

TiggerTakkyTTT wants to merge 2 commits into
PaperMC:mainfrom
TiggerTakkyTTT:fix/11465-middle-click-survival

Conversation

@TiggerTakkyTTT

Copy link
Copy Markdown

Fixes #11465

@TiggerTakkyTTT
TiggerTakkyTTT requested a review from a team as a code owner September 13, 2026 04:07
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Sep 13, 2026
@kennytv

kennytv commented Sep 26, 2026

Copy link
Copy Markdown
Member

The javadocs of the click type should get a note on what is actually captured, as discussed in the linked issue

@Warriorrrr

Copy link
Copy Markdown
Member

Feels inaccurate to call this "Fix middle click detection in survival", this only makes it so that the case where the client (wrongly?) sends a click packet with the clone action when the MMB is rebound is detected as a MIDDLE click. The client still doesn't send any packets when clicking the MMB with an empty cursor, I don't see how it could be fixed without client side changes.

@TiggerTakkyTTT

Copy link
Copy Markdown
Author

Feels inaccurate to call this "Fix middle click detection in survival", this only makes it so that the case where the client (wrongly?) sends a click packet with the clone action when the MMB is rebound is detected as a MIDDLE click. The client still doesn't send any packets when clicking the MMB with an empty cursor, I don't see how it could be fixed without client side changes.

Yeah, you’re right. This only handles the clone-action packet case when the middle mouse action is rebound, not middle clicks where the client sends no packet. I’ll update the title to make that clearer.

@TiggerTakkyTTT TiggerTakkyTTT changed the title Fix middle click detection in survival Detect rebound middle click clone actions in survival Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

InventoryClickEvent does not detect middle clicks (Survival mode)

3 participants