[PR #6029] [MERGED] Eject passengers from submerged boats #6613

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

📋 Pull Request Information

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

Base: main ← Head: fix/submerged-boat-ejection


📝 Commits (2)

  • 4647a2b Eject every player from boats submerged too long
  • 9e58983 Merge main into submerged boats (lan_e2e: boat_submerged beside shulker_lift)

📊 Changes

5 files changed (+182 additions, -16 deletions)

View changed files

📝 crates/horizon-client/src/game/boats.rs (+23 -14)
📝 crates/horizon-client/src/game/lan_vehicles.rs (+3 -2)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/LocatorBarClient.java (+7 -0)
📝 tools/lan_e2e.py (+50 -0)
➕ tools/test_boat_submerged_parity.py (+99 -0)

📄 Description

🤖 Opened by oskal675-design's AI agent (Codex, GPT-6), not by oskal675-design personally.

What and why

A player could remain in a fully submerged boat indefinitely. The server skipped its underwater countdown for client-driven boats, and its common ejection pass only removed mobs. Refresh and count the status before checking the existing 60-tick threshold, then use the existing rider-ejection path. Keep that request visible to every player in the boat until they have all left.

Fixes #5971. Claimed and assigned before implementation. Surface water and brief immersions remain rideable; a non-submerged tick resets the countdown.

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

Read actual 26.3 AbstractBoat.tick with tools/rea_vanilla.py: getStatus and the consecutive underwater counter run independently of movement authority; the server calls ejectPassengers at 60 ticks for UNDER_WATER or UNDER_FLOWING_WATER.

  • python3 tools/test_boat_submerged_parity.py: 20/20 passenger observations match real vanilla and Horizon dedicated servers through vanilla's protocol codecs. Covers an oak boat, chest boat and bamboo raft, flowing water, stable surface water, short immersion, a counter reset, prolonged immersion, and both controlling and second players in one boat. The client sends no vehicle movement, so the server must own its countdown. A small passive recorder addition reads each player's actual ClientboundSetPassengersPacket state.
  • python3 tools/lan_e2e.py --bin-dir <fixed binaries> --check boat_submerged --check boats --check boat-dismount-pose: all three checks pass, using two real clients on the default integrated server in fresh isolated homes. The new check covers host/guest × boat/raft, surface water, a short immersion, a genuinely dry hull resetting the countdown, and subsequent ejection. Existing steering and dismount-pose checks pass.
  • Before the fix, the new live scenario leaves the player riding after prolonged immersion. A separate observer run also records the unchanged boat ID as riding after 100 submerged ticks; with the fix the player rides nothing and stands outside the boat.
  • python3 tools/port_ledger.py check --base origin/main: no new gaps or stale citations.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick on omarchy, against origin/main at 4b87c5409, 4 min 25 s)

Check Result
Scope ✅ 5 files, +182 −16
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 522 passed (21 s)
rustfmt ✅ (5 s)
clippy ✅ (1 min 9 s)
tests: horizon-client ✅ 1702 passed (2 min 47 s)
doc tests ✅ 0 passed (1 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 ➖ 318 affected, to run in CI (--quick): blending, block_removal, block_survival, boat_submerged, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask, cauldron, cave_carver, chat_screen and 306 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The self-check ran in an isolated network namespace with scratch /tmp to avoid this host's TEST-NET proxy and ignored in-repository TMPDIR. --quick lists broader affected harnesses for CI; the focused native and real-client checks above ran locally.

Screenshots

The observer sees the player after 100 submerged ticks. Before: still seated. After: ejected from the boat.

Before
After

Please enable Allow edits by maintainers.

🤖 Generated with Codex.


🔄 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/6029 **Author:** [@oskal675-design](https://github.com/oskal675-design) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/submerged-boat-ejection` --- ### 📝 Commits (2) - [`4647a2b`](https://github.com/horizon-rust/horizon/commit/4647a2b257860243c7f64931abc4d311181a00c8) Eject every player from boats submerged too long - [`9e58983`](https://github.com/horizon-rust/horizon/commit/9e58983bb7855a2ddc4759ef946e7c0a9c596070) Merge main into submerged boats (lan_e2e: boat_submerged beside shulker_lift) ### 📊 Changes **5 files changed** (+182 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/boats.rs` (+23 -14) 📝 `crates/horizon-client/src/game/lan_vehicles.rs` (+3 -2) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/LocatorBarClient.java` (+7 -0) 📝 `tools/lan_e2e.py` (+50 -0) ➕ `tools/test_boat_submerged_parity.py` (+99 -0) </details> ### 📄 Description > 🤖 Opened by oskal675-design's AI agent (Codex, GPT-6), not by oskal675-design personally. ## What and why A player could remain in a fully submerged boat indefinitely. The server skipped its underwater countdown for client-driven boats, and its common ejection pass only removed mobs. Refresh and count the status before checking the existing 60-tick threshold, then use the existing rider-ejection path. Keep that request visible to every player in the boat until they have all left. Fixes #5971. Claimed and assigned before implementation. Surface water and brief immersions remain rideable; a non-submerged tick resets the countdown. ## Kind - [x] 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 Read actual 26.3 `AbstractBoat.tick` with `tools/rea_vanilla.py`: `getStatus` and the consecutive underwater counter run independently of movement authority; the server calls `ejectPassengers` at 60 ticks for `UNDER_WATER` or `UNDER_FLOWING_WATER`. - `python3 tools/test_boat_submerged_parity.py`: **20/20 passenger observations match real vanilla and Horizon dedicated servers** through vanilla's protocol codecs. Covers an oak boat, chest boat and bamboo raft, flowing water, stable surface water, short immersion, a counter reset, prolonged immersion, and both controlling and second players in one boat. The client sends no vehicle movement, so the server must own its countdown. A small passive recorder addition reads each player's actual `ClientboundSetPassengersPacket` state. - `python3 tools/lan_e2e.py --bin-dir <fixed binaries> --check boat_submerged --check boats --check boat-dismount-pose`: **all three checks pass**, using two real clients on the default integrated server in fresh isolated homes. The new check covers host/guest × boat/raft, surface water, a short immersion, a genuinely dry hull resetting the countdown, and subsequent ejection. Existing steering and dismount-pose checks pass. - Before the fix, the new live scenario leaves the player riding after prolonged immersion. A separate observer run also records the unchanged boat ID as `riding` after 100 submerged ticks; with the fix the player rides nothing and stands outside the boat. - `python3 tools/port_ledger.py check --base origin/main`: no new gaps or stale citations. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on omarchy, against origin/main at 4b87c5409, 4 min 25 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +182 −16 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 522 passed (21 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (1 min 9 s) | | tests: horizon-client | ✅ 1702 passed (2 min 47 s) | | doc tests | ✅ 0 passed (1 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 | ➖ 318 affected, to run in CI (--quick): blending, block_removal, block_survival, boat_submerged, bundle_weight, camera, canyon_carver, carving_geometry, carving_mask, cauldron, cave_carver, chat_screen and 306 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The self-check ran in an isolated network namespace with scratch `/tmp` to avoid this host's TEST-NET proxy and ignored in-repository TMPDIR. `--quick` lists broader affected harnesses for CI; the focused native and real-client checks above ran locally. ## Screenshots The observer sees the player after 100 submerged ticks. Before: still seated. After: ejected from the boat. ![Before](https://raw.githubusercontent.com/oskal675-design/horizon/6e7aacbfc4df61621ababb128a0ea006763d9a5d/before.png) ![After](https://raw.githubusercontent.com/oskal675-design/horizon/6e7aacbfc4df61621ababb128a0ea006763d9a5d/after.png) Please enable Allow edits by maintainers. 🤖 Generated with [Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:23:49 +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#6613
No description provided.