PaperMC / PaperMC/Paper

Cancelling Item drop inside invetory splits/moves the ItemStack

Open
#10,856 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: needs triage type: bug version: 1.20.6
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Expected behavior

When Item drop is cancelled the item stack affected should not be changed in any way

Observed/Actual behavior

When item is dropped from inside inventory this is cancelled, the item is readded into selected slot instead of original itemstack/slot

Steps/models to reproduce

prepare plugin cancelling all PlayerDropItemEvents

  1. get a stack of any item (/give @p minecraft:dirt 64) and have it in first slot
  2. select any other slot
    3.a) open inventory and drop one of the items using q and hovering the item stack
    3.b) right-click the item and drop it outside of the inventory
    3.c) left-click the item and drop it outside of inventory
Plugin and Datapack List

only the test plugin cancelling the drop events

Paper version

This server is running Paper version 1.20.6-137-master@bd5867a (2024-06-04T21:04:28Z) (Implementing API version 1.20.6-R0.1-SNAPSHOT)
You are running the latest version

Other

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Paper 1.20.6-137 using a plugin that cancels all PlayerDropItemEvents and the listed inventory interactions. Trace the inventory drop and event-cancellation handling; done means cancelling the drop leaves the original item stack and slot unchanged for all three reproduction cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.