This issue is still active. Tested with 14w30c. When ever the last use of an anvil is used, it will break and close the inventory menu. <-- That is the issue. This causes the item you just removed to be dropped/thrown, as you cannot hold an item, with the mouse cursor, when the inventory menu is closed. The only logical solution I see is to add a forth state to the anvil. aka broken. or to automatically switch to the player's inventory menu, before closing. This way the user can still place the item back into their inventory. It will also prevent the extremely rare chance that the item will get lost (like my first example), when thrown, or stolen by another nearby player.
This is still an issue, as of 14w04b. Any item still in hand when using any object will get thrown forward, when the object is destroyed before the player can place it in their inventory.
This issue is still active. Tested with 14w30c.
When ever the last use of an anvil is used, it will break and close the inventory menu. <-- That is the issue.
This causes the item you just removed to be dropped/thrown, as you cannot hold an item, with the mouse cursor, when the inventory menu is closed.
The only logical solution I see is to add a forth state to the anvil. aka broken. or to automatically switch to the player's inventory menu, before closing. This way the user can still place the item back into their inventory. It will also prevent the extremely rare chance that the item will get lost (like my first example), when thrown, or stolen by another nearby player.