9e2d46d54e
In singleplayer the middle button did nothing outside creative, and in creative it overwrote the selected hotbar slot. It now runs the server's handlePickItemFromBlock (tryPickItem): a stack of the block's item already in the hotbar is selected; one in the main inventory is swapped into getSuitableHotbarSlot (the first empty hotbar slot from the selected one, else the first unenchanted); only creative adds the item when none is there, moving what the slot held to a free slot. Servers already got the packet and do this themselves. Fixes #367. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>