mojira.dev
MC-260632

Riding an entity that is far away causes client/server desync

The bug

Riding an entity that is far away causes client/server desync. I am not sure if this is distinct from MC-201647.

Steps to reproduce

For these steps, I will use a sheep.

  1. Create a new world with this seed: 7747585803886593516.

  2. Ensure that there are no sheep nearby.

  3. /ride @s mount @e[type=sheep,limit=1,sort=nearest]

  4. Notice that the command was successful, but your visual position hasn't changed.

Observed behavior

The visual position doesn't change, and you become unable to interact with the world. Sometimes you get stuck as if you were actually riding the entity.

Expected behavior

You would be teleported to the sheep's location correctly.

Linked issues

Attachments

Comments 4

How far away is the sheep? Is it still in loaded chunks?

I believe it might be in unloaded chunks. Testing again with the same world spawned me at (-313, -294) and the nearest sheep was at (-157, -447). I had a simulation distance of 8 chunks and a render distance of 10 chunks.

While testing, I found out that this can happen regardless of the player spawning/respawning.

Edit: I tested if the sheep's position was loaded using /execute if loaded and it returned that the position was loaded.

ampolive

gegy

Confirmed

Platform

Important

Commands, Networking

1.19.4 Pre-release 2, 1.19.4 Pre-release 3

23w12a

Retrieved