Skip to content

Fix stabbing with a spear not triggering the left-click event#13780

Open
bluelhf wants to merge 1 commit intoPaperMC:mainfrom
bluelhf:spear-interact-fix
Open

Fix stabbing with a spear not triggering the left-click event#13780
bluelhf wants to merge 1 commit intoPaperMC:mainfrom
bluelhf:spear-interact-fix

Conversation

@bluelhf
Copy link
Copy Markdown
Contributor

@bluelhf bluelhf commented Apr 12, 2026

Fixes #13779

Spears do not send block break player actions in the same way as swords, but instead their own Stab action. Because of this, the usual handling for block interaction events does not work. An additional condition is added to allow the swing packet sent for piercing weapon attacks to trigger the interaction event.

@bluelhf bluelhf requested a review from a team as a code owner April 12, 2026 20:56
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Apr 12, 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.

Stabbing a block with a spear does not trigger left click event

1 participant