mojira.dev
MC-103672

Steerable ridden entities (boats / pigs / horses) teleport back to their previous position for a short moment on dismount

The bug

Steerable ridden entities like boats, pigs or horses teleport client-side to the position where you first started steering them for a short moment when you stop steering them. You can stop steering such an entity by either dismounting it or for example for pigs stop holding a carrot on a stick or for horses remove the saddle from the horse.

Video example: https://www.youtube.com/watch?v=ATXLXGaq-q8

How to reproduce

  1. Start riding a steerable entity like for example a boat

  2. Switch to third person view (F5) (back view) to be able to see the complete boat

  3. Move a while in it

  4. Dismount it
    → You will see that the boat is teleported for a short moment to the position where you first started riding it

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The method net.minecraft.entity.EntityLivingBase.onLivingUpdate() ignores all position and movement changes caused by the method net.minecraft.entity.EntityLivingBase.setPositionAndRotationDirect(double, double, double, float, float, int, boolean), which then, once the riding player is not steering it anymore, take effect. It might be good if the server would not send the packets calling this method if the entity is being steered or if this method would only set the field values if if the entity is not being steered.

Related issues

Attachments

Comments

migrated
[media][media][media][media]
[Mod]Les3awe

Can confirm.

migrated

Please see if 16w32a fixed this issue.

[Mod]Les3awe

Still in the 16w32a.

migrated

confirmed in 18w07c.

migrated

Affects 18w22c

migrated

Just tested this on 19w38b singleplayer and it appears to still occur with boats. The boat even teleported back to the position it used to be in and stayed there without letting me get in. I was forced to save and quit and start up my world again

migrated

Here is a attached gif of the bug happening in 19w38b.

[media]
violine1101

This does indeed still happen in 19w38b. However, this ticket only describes the case in which the boat returns a short time after exiting. There's another issue with the boat never returning, which is MC-161313. That is the issue that @unknown is experiencing.

migrated

slicedlime

Confirmed

Normal

Entities

boat, dismount, horse, move, not-synchronized, pig, position, teleport

Minecraft 1.10, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, ..., Minecraft 19w14a, Minecraft 19w14b, 1.14.4, 19w34a, 19w38b

19w38a, 19w39a

Retrieved