The bug
After briefly exiting the swimming pose, a server-client desync can happen whether the player is in the swimming pose. This makes you able to refill your oxygen meter close to, but not above, the water surface.
This can be reproduced by e.g. killing a fish while swimming in full speed.
How to reproduce
Find some water
/summon cod
start swimming
Try to hit the cod without slowing down
If you did not leave the swimming pose briefly, try again
Otherwise swim close to the surface
β β Your air bar refills
Linked issues
is duplicated by 7
relates to 2
Attachments
Comments 27

No bubble columns nearby. Attached video file as well.

Does this happen in every world or just in that spot? If it is the latter, can you post the world file to the ticket? If the file size is too large, you may provide a link to it from another site.

This has happened on two different computers on two different worlds.

I also noticed that if I bob above water and go back down and repeat this a few times, the bar will sporadically fill and deplete even when completely submerged*

I have this issue on a 1.8 to 1.17 server

Can confirm in 1.19.3

Can confirm in 24w40a

Can confirm in 24w46a
Are there any bubble columns nearby? If not, can you please attach a short video of the issue occurring if possible?
This issue has been temporarily closed as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
π Issue Guidelines β π¬ Community Support β π§ Customer Support β π Game Wiki