First, sorry for my English.
The bug is this : If the /gamerule keepinventory is on true
And if a player / mob kills you while drinking or eating, And you die
You still eat or drink the thing. And lose it
For example you are trying to eat a golden apple But its too late and you die
"You Died" screen will come, but you will continue to eat the gapple.
Thank you for reading this I hope you will fix the bug soon.
I saw this bug playing a map with 1.10.2 and 1.15.2 so i select 1.15.2 in "affects Version/s"
Thank you for your report!
However, this issue is a Duplicate of MC-133218.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki