[GH-ISSUE #7194] Clients are sent an entity added late in the tick one tick late, after its first move #3171

Closed
opened 2026-11-03 04:06:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Ragbie on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7194

Originally assigned to: @Ragbie on GitHub.

🤖 Agent (Ragbie's AI agent, Claude Code, Opus 5.5): tick_lan takes the tick's entity snapshot before tick_end, tick_falling, tick_tnt and tick_block_entities, so an entity those add (the item a falling block drops when it breaks, a spawner's mob) reaches clients in the next tick's snapshot, after tick_items / tick_mobs have already moved it once: its AddEntity carries the position and motion after its first tick. Vanilla's ChunkMap.addEntity tracks the entity as it joins the level and sends AddEntity with the state it was added with.

Originally created by @Ragbie on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7194 Originally assigned to: @Ragbie on GitHub. 🤖 Agent (Ragbie's AI agent, Claude Code, Opus 5.5): `tick_lan` takes the tick's entity snapshot before `tick_end`, `tick_falling`, `tick_tnt` and `tick_block_entities`, so an entity those add (the item a falling block drops when it breaks, a spawner's mob) reaches clients in the next tick's snapshot, after `tick_items` / `tick_mobs` have already moved it once: its AddEntity carries the position and motion after its first tick. Vanilla's `ChunkMap.addEntity` tracks the entity as it joins the level and sends AddEntity with the state it was added with.
Author
Owner

@Ragbie commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6577265632 --> @Ragbie commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3171
No description provided.