mojira.dev
MC-125329

Sprinting underwater while flying in creative makes player start swimming

The bug

If a player presses "sprint" key when moving in creative mode underwater, it instantly switches to "swimming mode." The player can still toggle flying by double-tapping space, but the swimming controls will override that state. Thus, it is possible to be both swimming and flying at the same time.

Expected behavior would be:

  • Creative players never swim while in "flying state"

  • Creative players can swim like survival while not flying

How to reproduce

  1. Move in water when being in creative mode

  2. Press "ctrl" or "sprint" key

  3. "Swimming mode" is toggled on

  4. If the player swims / sinks towards the bottom sometimes gets stuck and cannot move up / stop flying / swim up

The issue can be fixed by looking up (this toggles the "swimming mode" off) or switching into other gamemode.

Note: Spectator mode is not affected (anymore).

Related issues

Attachments

Comments

migrated
[media]
Sonicwave

Confirmed, maybe related to MC-125188

tryashtar

Updated the description slightly to note this also affects spectator mode

JUE13

Confirmed for 18w07c

migrated

comfirmed for 18w08b
And you will stop flying after swimming in creative mode.

migrated

Im not 100% sure this is related but... If you go into water 1 block deep and start swimming an start to "Sprint" swim you will sink halfway into the block below and thus now be classified as underwater

FaRo1

No, that's a different issue. Please create a report (if it doesn't exist already) and also put screenshots with F3+B active in it.

migrated

same issue exists in 18w11a

migrated

This issue still exist in 18w15a

migrated

It doesn't seem to affect spectator mode in 18w15a though, so it's partially fixed.

migrated

Agnes Larsson

Confirmed

Minecraft 18w07a, Minecraft 18w07c, Minecraft 18w08a, Minecraft 18w08b, Minecraft 18w09a, ..., Minecraft 18w10d, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a

Minecraft 18w16a

Retrieved