The Bug
When switching gamemodes from survival to spectator and vice versa using F3 + F4 while being underwater, player's breathing does not reset.
Steps To Reproduce
Switch the gamemode to survival:
/gamemode survival
Stand underwater. You can use these commands to do so:
/fill ~-1 ~-1 ~-1 ~4 ~2 ~4 glass outline
/fill ~ ~ ~ ~3 ~1 ~3 water
When you see that the breathing starts to reduce, switch to spectator using F3 + F4
Switch to survival again
❌ Player's breathing does not reset.
Expected Behavior
Player's breathing would reset when switching back to survival.
Observed Behavior
Player's breathing does not reset when switching back to survival.
It also doesn’t reset when switching to creative.