In debug mode, the "waterlogged" state works strangely.
1. Create a debug world.
2. Turn on sounds.
3. Write /gamemode survival.
4. Write /tp 123 90 251 (for 1.19.2).
5. Think about why you fell into invisible water that shouldn't exist?
Environment
Java: 17.0.3 64 bit
OS: Windows 10 1909
CPU: 8x AMD Ryzen 5 3400G
Version: Minecraft 1.19.2 (1.19.2/vanilla)
Duplicate of MC-58898, spectator mode is the only supported game mode for debug worlds.