Skip to content

Players gain infinite xp from shift-right-click-repairs-mending-points with a tool at full durability #1694

Description

@JLyne

Spark link

https://spark.lucko.me/1xBg8USMgj

Expected behavior

Players should not gain XP when mining while triggering the shift-right-click-repairs-mending-point functionality, which requires holding shift + left and right mouse buttons all at once.

Observed/Actual behavior

If a player's mending pickaxe is at full durability, they will gain XP from mining any block while sneaking + holding left and right mouse buttons, even blocks that do not provide XP.

Player provided video:

2025-08-13_13-18-22_10M.mp4

Steps/models to reproduce

  1. Acquire a full durability mending pickaxe
  2. Sneak
  3. Mine a block that doesn't not provide XP while holding both mouse buttons and continuing to sneak
  4. Observe how the tool is repaired and you gains XP

Purpur version

This server is running Purpur version 1.21.8-2489-HEAD@4fd4df07 (2025-08-12T23:36:00Z) (Implementing API version 1.21.8-R0.1-SNAPSHOT)

Agreements

  • I am running the latest version of Purpur available from https://purpurmc.org/downloads.
  • I have searched for and ensured there isn't already an open issue regarding this.
  • I ticked all the boxes without actually reading them
  • My version of Minecraft is supported by Purpur.

Other

After a quick look at the code, the problem seems to be that an XP orb for the full configured points value is always dropped, while the player only has 2 XP taken from them if the tool has only lost one durability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions