dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

Item throwing doesn't work when not held

Open Sandertv opened this issue 4 years ago • 1 comments

When throwing an item out of the hotbar on mobile editions, you do not actually need to select the item in the hotbar. Dragonfly assumes this has to be done however, and rejects item dropping if the item dropped is not held in the hand. This is incorrect behaviour.

Sandertv avatar Jul 28 '21 17:07 Sandertv

This has not yet been fixed by the commit mentioned above. This is difficult to fix if we don't fully handle inventory transactions (which we don't). As this issue is of very low significance, I'm going to give this the v? milestone. If Mojang ever finished their changes to the inventory system, this should be fixed automatically.

Sandertv avatar Jul 31 '21 17:07 Sandertv

https://github.com/pmmp/PocketMine-MP/blob/minor-next/src/network/mcpe/handler/InGamePacketHandler.php#L389-L409

This might be of use.

JustTalDevelops avatar Mar 25 '23 03:03 JustTalDevelops