[PR #4011] [MERGED] Boat passengers no longer drown while the boat floats on water #5354

Closed
opened 2026-11-03 05:12:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4011
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: fix/issue-4001-boat-drowning


📝 Commits (6)

  • 9784820 Boat passengers no longer drown while the boat floats on water
  • a1c0657 Boat passengers' fluid box follows the boat
  • 852f627 Merge remote-tracking branch 'origin/main' into pr-4011
  • f1cb24b Merge remote-tracking branch 'origin/main' into HEAD
  • 5ff1007 Merge branch 'fix/issue-4001-boat-drowning' of https://github.com/DUzzL/horizon into pr-4011
  • 9c32365 Merge main into #4011: use main's RiddenBoat for served players

📊 Changes

4 files changed (+89 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/boats.rs (+14 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+2 -0)
📝 crates/horizon-world/src/fluid_box.rs (+72 -0)
📝 tools/port_map/game2-007.tsv (+1 -1)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4001

Vanilla Entity.updateFluidOnEyes finds no fluid on the eyes of a rider whose eyes are inside the box of a boat that is not underwater. Horizon's server-side tick for a LAN guest (guest_server_tick) ignored this, so a guest in a boat floating on water ran out of air and drowned above the surface.

Change: PlayerFluids.boat_shelters_eyes is set by the game from the ridden boat (Game::boat_shelters_eyes: not underwater, box spans the eye height). After the fluid update the eyes-inside flags are cleared (EntityFluidInteraction::clear_eyes_inside); body immersion is unchanged, as in vanilla.

Tested: cargo fmt --check and cargo clippy -p horizon-world -p horizon-client --all-targets -- -D warnings pass. cargo test -p horizon-world --lib fluid_box (the new unit tests, 3 passed). cargo test -p horizon-client --lib: 710 passed, 1 failed (title::tests::each_world_preset_writes_its_own_generator, a Windows path error NotADirectory in a title-screen test this change does not touch).
Not tested: no end-to-end LAN run with a boat, no vanilla parity harness (no .local vanilla data here), tools/pr_ready.py and the port-map check for tools/port_map/game2-007.tsv not run. The single-player rider path is untouched (it skips the fluid tick while riding).


🔄 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/4011 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/issue-4001-boat-drowning` --- ### 📝 Commits (6) - [`9784820`](https://github.com/horizon-rust/horizon/commit/9784820d3caf21bc4bbe5a97fef828363c2ba8ec) Boat passengers no longer drown while the boat floats on water - [`a1c0657`](https://github.com/horizon-rust/horizon/commit/a1c065740fff94e415c333977a285d50224d9ab5) Boat passengers' fluid box follows the boat - [`852f627`](https://github.com/horizon-rust/horizon/commit/852f62773768599f0cd410e0fb86fcb474937115) Merge remote-tracking branch 'origin/main' into pr-4011 - [`f1cb24b`](https://github.com/horizon-rust/horizon/commit/f1cb24b213b259d553fa5fc73d57b5dcaee1bfa5) Merge remote-tracking branch 'origin/main' into HEAD - [`5ff1007`](https://github.com/horizon-rust/horizon/commit/5ff1007a2942c0b024194e1a4fb8f5ca8ff3d4eb) Merge branch 'fix/issue-4001-boat-drowning' of https://github.com/DUzzL/horizon into pr-4011 - [`9c32365`](https://github.com/horizon-rust/horizon/commit/9c32365c4db99071a77f5da26a02ca2f1b927c63) Merge main into #4011: use main's RiddenBoat for served players ### 📊 Changes **4 files changed** (+89 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/boats.rs` (+14 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+2 -0) 📝 `crates/horizon-world/src/fluid_box.rs` (+72 -0) 📝 `tools/port_map/game2-007.tsv` (+1 -1) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4001 Vanilla `Entity.updateFluidOnEyes` finds no fluid on the eyes of a rider whose eyes are inside the box of a boat that is not underwater. Horizon's server-side tick for a LAN guest (`guest_server_tick`) ignored this, so a guest in a boat floating on water ran out of air and drowned above the surface. Change: `PlayerFluids.boat_shelters_eyes` is set by the game from the ridden boat (`Game::boat_shelters_eyes`: not underwater, box spans the eye height). After the fluid update the eyes-inside flags are cleared (`EntityFluidInteraction::clear_eyes_inside`); body immersion is unchanged, as in vanilla. Tested: `cargo fmt --check` and `cargo clippy -p horizon-world -p horizon-client --all-targets -- -D warnings` pass. `cargo test -p horizon-world --lib fluid_box` (the new unit tests, 3 passed). `cargo test -p horizon-client --lib`: 710 passed, 1 failed (`title::tests::each_world_preset_writes_its_own_generator`, a Windows path error `NotADirectory` in a title-screen test this change does not touch). Not tested: no end-to-end LAN run with a boat, no vanilla parity harness (no `.local` vanilla data here), `tools/pr_ready.py` and the port-map check for `tools/port_map/game2-007.tsv` not run. The single-player rider path is untouched (it skips the fluid tick while riding). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:00 +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#5354
No description provided.