[PR #6429] [MERGED] A boat's entity tick Post comes after the rest of its tick #6868

Closed
opened 2026-11-03 06:28:24 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6429
Author: @breachato
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/6388-boat-tick-post


📝 Commits (2)

  • 4fe3248 A boat's entity tick Post comes after the rest of its tick
  • ae29595 Boats: keep the ticked list only while a mod hears the ticks

📊 Changes

1 file changed (+10 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/boats.rs (+10 -1)

📄 Description

🤖 Opened by breachato's AI agent (Claude Code, Claude Opus 5.5), not by breachato personally.

What and why

Fixes #6388.

tick_boats sent a boat's native_entity_tick_post (EntityTickEvent.Post, #6280) right after tick_boat. The server passes that follow for the same boat ran after it: lava damage (boat_lava_tick), riders ejected after too long under water, the bubble column, and picking up or pushing what it touches (boat_contacts). In vanilla 26.3 these are all part of AbstractBoat.tick, which ServerLevel.tickNonPassenger runs in full before NeoForge's Post.

So a mod reading a boat in Post saw it before those passes, and a boat it moved there was then pushed and picked up from the moved position within the same tick.

tick_boats now records each boat it ticked (id and type, in order) and sends their Posts after the last pass. Boats whose tick a mod canceled in Pre, or that weren't ticked here (a player drives them, out of the ticking area), get no Post, as before.

One difference from vanilla's order is left: vanilla interleaves Pre, tick, Post for each boat, while here every ticked boat's Post comes after all the boats' passes, because those passes are separate loops over all boats (client-driven ones included). What a mod sees of each boat in its Post is now its full tick.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

  • net.minecraft.server.level.ServerLevel.tickNonPassenger: entity.tick() in full, between NeoForge's fireEntityTickPre and fireEntityTickPost.
  • net.minecraft.world.entity.vehicle.boat.AbstractBoat.tick: the lava, ejection, bubble column and contact passes.

Not run in game here: the issue's check needs horizon-machine-sample logging native_entity_tick_post for a boat on lava or pushing a mob.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on DESKTOP-G0M27UC, against upstream/main at f4833621f, 9 min 0 s)

Check Result
Scope ✅ 1 files, +8 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 594 passed (3 min 17 s)
rustfmt ✅ (15 s)
clippy ✅ (2 min 3 s)
tests: horizon-client ❌ 580 passed, 2 failed (3 min 17 s)
doc tests ✅ 0 passed (4 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The two failing tests, native_loot_kinds_stay_hookable and native_breathing_stays_hookable, are unrelated: they look for " } " in a source file a Windows core.autocrlf checkout has in CRLF (#6372, fixed in #6375). CI (LF) is unaffected.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6429 **Author:** [@breachato](https://github.com/breachato) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/6388-boat-tick-post` --- ### 📝 Commits (2) - [`4fe3248`](https://github.com/horizon-rust/horizon/commit/4fe32489bd79ff5a556367d7b7be5df5156a0534) A boat's entity tick Post comes after the rest of its tick - [`ae29595`](https://github.com/horizon-rust/horizon/commit/ae295952ce7144032d6a06b5ad17f8aa1043c836) Boats: keep the ticked list only while a mod hears the ticks ### 📊 Changes **1 file changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/boats.rs` (+10 -1) </details> ### 📄 Description > 🤖 Opened by breachato's AI agent (Claude Code, Claude Opus 5.5), not by breachato personally. ## What and why Fixes #6388. `tick_boats` sent a boat's `native_entity_tick_post` (`EntityTickEvent.Post`, #6280) right after `tick_boat`. The server passes that follow for the same boat ran after it: lava damage (`boat_lava_tick`), riders ejected after too long under water, the bubble column, and picking up or pushing what it touches (`boat_contacts`). In vanilla 26.3 these are all part of `AbstractBoat.tick`, which `ServerLevel.tickNonPassenger` runs in full before NeoForge's Post. So a mod reading a boat in Post saw it before those passes, and a boat it moved there was then pushed and picked up from the moved position within the same tick. `tick_boats` now records each boat it ticked (id and type, in order) and sends their Posts after the last pass. Boats whose tick a mod canceled in Pre, or that weren't ticked here (a player drives them, out of the ticking area), get no Post, as before. One difference from vanilla's order is left: vanilla interleaves Pre, tick, Post for each boat, while here every ticked boat's Post comes after all the boats' passes, because those passes are separate loops over all boats (client-driven ones included). What a mod sees of each boat in its Post is now its full tick. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [x] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference - `net.minecraft.server.level.ServerLevel.tickNonPassenger`: `entity.tick()` in full, between NeoForge's `fireEntityTickPre` and `fireEntityTickPost`. - `net.minecraft.world.entity.vehicle.boat.AbstractBoat.tick`: the lava, ejection, bubble column and contact passes. Not run in game here: the issue's check needs horizon-machine-sample logging `native_entity_tick_post` for a boat on lava or pushing a mob. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on DESKTOP-G0M27UC, against upstream/main at f4833621f, 9 min 0 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +8 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 594 passed (3 min 17 s) | | rustfmt | ✅ (15 s) | | clippy | ✅ (2 min 3 s) | | tests: horizon-client | ❌ 580 passed, 2 failed (3 min 17 s) | | doc tests | ✅ 0 passed (4 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The two failing tests, `native_loot_kinds_stay_hookable` and `native_breathing_stays_hookable`, are unrelated: they look for `" } "` in a source file a Windows `core.autocrlf` checkout has in CRLF (#6372, fixed in #6375). CI (LF) is unaffected. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:28:24 +07:00
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#6868
No description provided.