CPacketRecipePlacement can delete items by sending invalid destination index in "from inventory to open container" item movement
Based on 1.12 decompiled using MCP 9.40 PRE 1
The bug
The packet CPacketRecipePlacement can delete items by using a "from inventory to open container" item movement with an invalid destination index since then an exception occurs and the item stack which was just removed from its current slot is not placed again.
This can for example allow players to delete their inventory content during a PVP battle to prevent enemy players from getting their items.