When a dialog is shown while the player is holding an item stack in the cursor slot while in a GUI, if the player exits the dialog by clicking a button, the items in the cursor slot will be thrown into the world, potentially exposing them to danger. Exiting the dialog with the escape key does not do this, nor does navigating to the button with the arrow keys and pressing the enter key.
To reproduce
Place an impulse command block with the command
dialog show @p minecraft:custom_options
Connect it to a pressure plate with several (6-8) 4-tick redstone repeaters
Ensure that an item stack is in your hotbar
Step on the pressure plate, then quickly open your inventory and pick up the item stack with your cursor
When the dialog appears, click Back
❌ The item stack is thrown into the worldRepeat steps 3-4, but this time, close the dialog with the escape key
✅ The items remain in your cursor slot
Attachments
Comments 0
No comments.