Mojira Archive
MC-132064

Swimming state does not end when teleporting / jumping out of water

Helper Note

Please restrict comments to new info that might help to fix this bug. Discussion how this bug can be abused can take place elsewhere.
And remember: It is a bug. Please don't get too upset when it gets fixed.

The bug

Using a teleport command to get out of water while in the swimming animation causes it to be stuck. The player swims on land and is not able to toggle it off.
This also happens sometimes when you jump out of water.

How to reproduce

  1. Setup a commandblock with the following command. Add repeaters to it so you have delay after activation
    /tp @p (location outside of the water)
    
  2. Activate the contraption
  3. Get into a pool of water (at least two blocks deep) and press Shift to enter swimming mode

You are teleported while you're swimming, causing you to continue the swimming animation. Upon re-entering water the swimming animation gets deactivated.

Fixed

[Helper] Lord_Quadrato

[Mojang] Cory Scheviak

2018-06-26, 05:06 PM

2019-04-03, 07:06 PM

2018-06-28, 11:51 AM

32

14

Confirmed

animation, swim, swimming, water

Minecraft 1.13-pre4

Minecraft 1.13-pre5