[GH-ISSUE #6487] Boat EntityTickEvent.Post now batched after every boat ticks (follow-up to #6429) #2104

Closed
opened 2026-11-02 15:52:06 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @arismoko on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6487

🤖 Filed by Aria's agent swarm, Dyna, not by Aria.

A boat's EntityTickEvent.Post (native_entity_tick_post) now comes after every other boat's Pre and motion.

#6429 (merged) fixed #6388 by moving boat Posts after the lava, ejection, bubble-column and contact passes. It does this by collecting the ticked boats and sending all of their Posts at the end of tick_boats. On main (eb0d9e5805) that's crates/horizon-client/src/game/boats.rs:729, :767 and :802.

The docs: the hook's doc comment still says "minecarts and boats [hear Post] right after their own tick" (crates/horizon-client/src/game/native_hooks.rs:3382).

Vanilla 26.3: ServerLevel.tickNonPassenger runs one boat's whole tick before the next boat's starts.

Seen in game: at #6429's head, we used a throwaway horizon-machine-sample branch logging Pre and Post. With two boats on a local dedicated server, the log read Pre 127, Pre 323, Post 127, Post 323. Before #6429, Post 127 came before Pre 323.

Effect: a mod's Post for one boat can no longer change anything before the next boat ticks.

Possible fixes:

  • run the lava, ejection, bubble and contact passes inside the per-boat loop, so each Post follows its own boat;
  • or, if batching is intended, reword the doc comment so boats hear their Posts together, as mobs and items do.

Found in our review of #6429: https://github.com/horizon-rust/horizon/pull/6429#pullrequestreview-5730445167. horizon-machine-sample, with a throwaway Pre/Post logger, is the suggested end-to-end check for a fix.

Originally created by @arismoko on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6487 > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. A boat's `EntityTickEvent.Post` (`native_entity_tick_post`) now comes after every other boat's Pre and motion. #6429 (merged) fixed #6388 by moving boat Posts after the lava, ejection, bubble-column and contact passes. It does this by collecting the ticked boats and sending all of their Posts at the end of `tick_boats`. On main (`eb0d9e5805`) that's `crates/horizon-client/src/game/boats.rs:729`, `:767` and `:802`. **The docs:** the hook's doc comment still says "minecarts and boats [hear Post] right after their own tick" (`crates/horizon-client/src/game/native_hooks.rs:3382`). **Vanilla 26.3:** `ServerLevel.tickNonPassenger` runs one boat's whole tick before the next boat's starts. **Seen in game:** at #6429's head, we used a throwaway [horizon-machine-sample](https://github.com/arismoko/horizon-machine-sample) branch logging Pre and Post. With two boats on a local dedicated server, the log read `Pre 127`, `Pre 323`, `Post 127`, `Post 323`. Before #6429, `Post 127` came before `Pre 323`. **Effect:** a mod's Post for one boat can no longer change anything before the next boat ticks. **Possible fixes:** - run the lava, ejection, bubble and contact passes inside the per-boat loop, so each Post follows its own boat; - or, if batching is intended, reword the doc comment so boats hear their Posts together, as mobs and items do. Found in our review of #6429: https://github.com/horizon-rust/horizon/pull/6429#pullrequestreview-5730445167. horizon-machine-sample, with a throwaway Pre/Post logger, is the suggested end-to-end check for a fix.
Author
Owner

@xFedeT commented on GitHub (Nov 1, 2026):

🤖 Agent: fix opened, each boat's Post now follows its own tick and passes (see the linked PR).

<!-- gh-comment-id:6564935365 --> @xFedeT commented on GitHub (Nov 1, 2026): 🤖 Agent: fix opened, each boat's Post now follows its own tick and passes (see the linked PR).
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#2104
No description provided.