mojira.dev
MC-79876

Closing inventory while holding item does not properly drop it

The bug

Closing your inventory while you are holding an item with your cursor does not drop it properly. Neither stat.drop is increased nor you are set as Thrower of the item.

Steps to reproduce

  1. Create a stat.drop scoreboard objective and show it on the sidebar

    /scoreboard objectives add droppedItem stat.drop
    /scoreboard objectives setdisplay sidebar droppedItem
  2. Put an item in your inventory

  3. Switch to Survival or Adventure mode

    /gamemode survival
  4. Open your inventory and pick up an item with your cursor

  5. Close your inventory
    → The item is dropped but your droppedItem score does not increase

Related issues

Comments

SunCat

Confirmed for 1.9

SunCat

Still in 1.9.1-pre3

SunCat

Still in 16w15b

migrated

Closing the inventory while holding items
Still in 1.11

Throwing items by right- or left-clicking them out of the open inventory
Hovering over items in the open inventory and pressing (ctrl+)q
Fixed in/before 1.11

migrated

(Unassigned)

Confirmed

cursor, dropItem, inventory, stat.drop

Minecraft 1.8.4, Minecraft 15w45a, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.2, Minecraft 16w15b, Minecraft 1.11, Minecraft 1.12 Pre-Release 1

Retrieved