Skip to content

Conversation

@ColinNason
Copy link

@ColinNason ColinNason commented Dec 14, 2025

Fixes #13390

New change uses the defined itemStack variable to set the trident pick up item. The itemStack variable is a fixed value of 1.

The hurtWithoutBreaking call is also switched over, this is to allow regular tridents to still take durability damage.

@ColinNason ColinNason requested a review from a team as a code owner December 14, 2025 17:04
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Dec 14, 2025
+ ThrownTrident thrownTrident = tridentDelayed.projectile(); // Paper - PlayerLaunchProjectileEvent
+ if (event.shouldConsume()) {
+ stack.hurtWithoutBreaking(1, player); // Paper - PlayerLaunchProjectileEvent
+ itemStack.hurtWithoutBreaking(1, player); // Paper - PlayerLaunchProjectileEvent // Paper use itemStack; pickup item damage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are long hardforked from spigot, no need to add paper comments again, this code is already in a diff block.

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.

Stacked tridents with increased max_stack_size are duplicated when thrown and picked up

3 participants