[PR #6749] [MERGED] Spectators no longer splash when entering water #7068

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6749
Author: @DUzzL
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/6706-spectator-water-splash


📝 Commits (1)

  • 513cd00 Spectators make no splash when entering water

📊 Changes

2 files changed (+34 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/motion.rs (+30 -0)
📝 crates/horizon-client/src/motion/fluids.rs (+4 -0)

📄 Description

🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL himself.

Fixes #6706

What

Entering water in Spectator Mode no longer plays the splash sound, spawns splash/bubble particles or emits the SPLASH game event.

Why

Vanilla Player.doWaterSplashEffect is if (!isSpectator()) super.doWaterSplashEffect() (called from Entity.updateFluidInteraction). Horizon's MotionWorld::water_splash (crates/horizon-client/src/motion/fluids.rs) ran the splash unconditionally. It now returns early for spectators, which also skips the random draws as in vanilla. The same PlayerMotion is used for the single-player server-thread path and LAN guests (PlayerMotion.spectator is set from the game mode in both).

Evidence

New unit test motion::tests::a_spectator_entering_water_makes_no_splash: fails without the change, passes with it.

pr_ready notes

  • Run with --quick on Windows: the vanilla harnesses fail here because .local is a junction that tools/lab.py resolves outside the worktree; CI's parity job covers them.
  • The one Python failure, test_world_input_capture.test_capture_lifecycle (capture.exe exit 101), is unrelated to this change.

pr_ready (tools/pr_ready.py --quick --base upstream/main on DESKTOP-6RJOI59, against upstream/main at 43062d7bb, 22 min 53 s)

Check Result
Scope ✅ 2 files, +34 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 600 run, FAILED (errors=1, skipped=2) (5 min 40 s)
rustfmt ✅ (33 s)
clippy ✅ (4 min 14 s)
tests: horizon-client-lib ✅ 1337 passed (11 min 40 s)
doc tests ✅ 0 passed (19 s)
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 215 affected, to run in CI (--quick): arrow, auto_jump, enchanting, held_item_stack, interaction_shape, inventory_pickup, inventory_tick, inventory_use, inventory_use_start, item_after_use, item_blocking, item_cooldowns and 203 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🔄 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/6749 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/6706-spectator-water-splash` --- ### 📝 Commits (1) - [`513cd00`](https://github.com/horizon-rust/horizon/commit/513cd005e5f6280491387f869b4770c86558c69c) Spectators make no splash when entering water ### 📊 Changes **2 files changed** (+34 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/motion.rs` (+30 -0) 📝 `crates/horizon-client/src/motion/fluids.rs` (+4 -0) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent (Claude Code), not by DUzzL himself. Fixes #6706 ## What Entering water in Spectator Mode no longer plays the splash sound, spawns splash/bubble particles or emits the SPLASH game event. ## Why Vanilla `Player.doWaterSplashEffect` is `if (!isSpectator()) super.doWaterSplashEffect()` (called from `Entity.updateFluidInteraction`). Horizon's `MotionWorld::water_splash` (`crates/horizon-client/src/motion/fluids.rs`) ran the splash unconditionally. It now returns early for spectators, which also skips the random draws as in vanilla. The same `PlayerMotion` is used for the single-player server-thread path and LAN guests (`PlayerMotion.spectator` is set from the game mode in both). ## Evidence New unit test `motion::tests::a_spectator_entering_water_makes_no_splash`: fails without the change, passes with it. ## pr_ready notes - Run with `--quick` on Windows: the vanilla harnesses fail here because `.local` is a junction that `tools/lab.py` resolves outside the worktree; CI's parity job covers them. - The one Python failure, `test_world_input_capture.test_capture_lifecycle` (capture.exe exit 101), is unrelated to this change. **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on DESKTOP-6RJOI59, against upstream/main at 43062d7bb, 22 min 53 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +34 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 600 run, FAILED (errors=1, skipped=2) (5 min 40 s) | | rustfmt | ✅ (33 s) | | clippy | ✅ (4 min 14 s) | | tests: horizon-client-lib | ✅ 1337 passed (11 min 40 s) | | doc tests | ✅ 0 passed (19 s) | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 215 affected, to run in CI (--quick): arrow, auto_jump, enchanting, held_item_stack, interaction_shape, inventory_pickup, inventory_tick, inventory_use, inventory_use_start, item_after_use, item_blocking, item_cooldowns and 203 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:33:14 +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#7068
No description provided.