You lose experience but not items when removing the keepinventory while on the death screen
When activating keepinventory and then dying, if you delay pressing the revive button and keepinventory deactivates, you retain your items but not the experience. (The first command is 'kill @p', and the second one is 'keepinventory false'.
Steps to Reproduce:
- Throw a few experience bottles on the ground and pick up the orbs
- Type /gamerule keepinventory true in the chat
- Type /gamemode survival in the chat
- Type /kill @p in the chat
- While on the death screen, type /gamerule keepinventory false in the chat
- Press the Respawn button
Observed Results:
You retain your items but not the experience.
Expected Results:
You retain both of your items and experience or you don't retain them.