Skip to content

Resync wandering trader leashes when tracking resumes - #14347

Open
neonjava wants to merge 1 commit into
PaperMC:mainfrom
neonjava:fix/trader-leash-resync
Open

neonjava wants to merge 1 commit into
PaperMC:mainfrom
neonjava:fix/trader-leash-resync

Conversation

@neonjava

@neonjava neonjava commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #14049

Problem

If a wandering trader leaves tracking range while its leashed llama stays visible, the leash can remain attached to the trader's old position when the trader returns.

Solution

When a wandering trader starts being tracked again, resend the leash link for any of its leashed entities that the player is already tracking.

Testing

Built Paper 26.3 from upstream commit 6e88e46 with and without this change. In the issue's test world, moved from (8, 50, 53) to (8, 50, -42) and back. The leash remained in the air before the change and reattached to the trader afterward.

Before:

Leash remains attached to empty air

After:

Leash reconnects to the trader

@neonjava
neonjava requested a review from a team as a code owner October 4, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

Wandering Trader leash desync when re-entering tracking distance

1 participant