Skip to content

Wandering Trader leash desync when re-entering tracking distance #14049

Description

@Biquaternions

Expected behavior

Given the following setup:

  1. A wandering trader spawns with two llamas, only one is required for this example
  2. One llama is 4 blocks closer to the player compared to the trader

If the player moves far enough for the trader (that is slightly farther away than the llama) to not being tracked, but still keeps the llama within tracking distance, when the player comes closer to make the trader appear again, the leash will connect back to the wandering trader.

Observed/Actual behavior

If the player moves far enough for the trader to not being tracked, but still keeps the llama within distance, when the player comes closer to make the trader appear again, the leash will be stuck on the air in the same position the trader was before going out of tracking distance.

Steps/models to reproduce

  1. Load the following world with Paper 26.2 build 56 (jar not included):
    server.zip

  2. Fly to the platform with the trader and their llama.

  3. Fly far enough to only get the trader to not be tracked, there's a diamond platform in the distance for reference

  4. Fly back to the platform with the trader

  5. See the desync

Plugin and Datapack List

No plugins nor datapacks

Paper version

Paper 26.2 build 56

Other

Possibly related issues as pointed out by Amaranth in discord, but not quite the same issue:
https://mojira.dev/MC-153980
https://mojira.dev/MC-144312

I haven't been able to re-create this neither in Vanilla nor in Fabric+Moonrise.
Paper has logic to re-attach a leashed entity to their leasher when they enter tracking distance.
However, it doesn't seem to be any logic that does the opposite, re-sync the leasher to its leashed entities (vanilla and moonrise don't seem to have logic for that either, it's weird).

tracking_leash_desync.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 26.2

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions