mojira.dev
MC-134399

Creative mode itemDropThreshold is not considered in all situations

The bug

Creative mode has an item drop threshold (NetHandlerPlayServer.itemDropThreshold), but the problem is that this is not considered for all cases.

Currently it is only used when the player throws item out of the creative inventory tabs or when the "Survival Inventory" is open. Other cases like throwing items from the hotbar, or items created when interacting with entities, containers are closed, etc. are not considered.

How to reproduce

  1. Put items in your hotbar

  2. Close your inventory

  3. Try dropping the items from the hotbar as fast as possible
    → ❌ All items are successfully thrown, the treshold was not considered

Attachments

Comments

pulpetti

Confirmed in 1.16.1 and 20w29a.

[Mod] Jingy

I'm not quite sure what the expected result is here, and what I should be looking for when I try and reproduce the issue. "the treshold was not considered" is a bit vague to me, could you clarify?

Here is my own test of the issue:
All items are thrown as expected, I'm not sure what's functionally incorrect:

[media]

marcono1234

(Unassigned)

Confirmed

Player

item-dropping

Minecraft 1.13, 19w39a, 1.15.1, 1.16.1, 20w29a

Retrieved