Steps to reproduce:
Create/open a world with cheats enabled
Run
/gamerule doimmediaterespawn true
Die
Run
/gamerule doimmediaterespawn false
Die twice
Observed result:
The death screen does not show up for the first 2 deaths and shows up for the last death.
Expected result:
The death screen does not show up only for the first death.
Attachments
Comments 4

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Could you please export and attach a world showcasing the issue?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki