[PR #7652] The player who pours water on lava sees its smoke #7739

Open
opened 2026-11-03 07:23:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7652
Author: @razzo715
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/lava-fizz-particles


📝 Commits (1)

  • e23b215 The player who puts out lava sees its smoke (#7537)

📊 Changes

3 files changed (+33 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+1 -1)
📝 crates/horizon-client/src/game/lan.rs (+11 -1)
📝 tools/lan_e2e.py (+21 -3)

📄 Description

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

What and why

Pouring a water bucket onto lava turned the lava beside it into obsidian, but the player who poured it never saw the smoke (#7537). LiquidBlock.fizz sends level event 1501 with no excluded player, so in vanilla everyone near sees it, the player who poured included. Horizon's server left 1501 out for the acting player in lan_record_events, as if that player's client had predicted it, but the client's bucket prediction (DryLevel) keeps only sounds. The host's own window, a client of its server thread, missed it the same way.

The other players heard the hiss twice: once from the level event and once from the sound packet the server captured while it handled the event.

1501 now joins the level events every client gets (with 1503, an eye in a portal frame), and the server plays its sound unshared, so each client hears it once, from the event.

Fixes #7537

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

LiquidBlock.fizz calls level.levelEvent(1501, pos, 0), and LevelAccessor.levelEvent(int, BlockPos, int) passes it on as levelEvent(null, 1501, pos, 0): no excluded entity (read from the 26.3 client jar with javap -c). LevelEventHandler 1501 plays block.lava.extinguish, then eight LARGE_SMOKE, which Horizon's client already does (puffs_above_block).

Harness: tools/lan_e2e.py --check sparks now has the host and then the guest pour a water bucket beside lava, and checks the smoke on both sides, one hiss on each side and the obsidian. Run locally on Windows:

Smoke, own / other Hiss, own / other Result
Before the fix (host and guest) 0 / 8 1 / 2 FAIL
With the fix (host and guest) 8 / 8 1 / 1 PASS

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on DESKTOP-Q5U547F, against upstream/main at 2050c4e0f, 6 min 35 s)

Check Result
Scope ✅ 4 files, +34 −5
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (1 min 56 s)
rustfmt ✅ (13 s)
Rust ⚠️ 1.98.1 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with rustup update
clippy ✅ (56 s)
tests: horizon-client ✅ 698 passed (2 min 35 s)
doc tests ✅ 0 passed (4 s)
content root tests ➖ content root untouched
mod API up to date ✅ (27 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 346 affected, to run in CI (--quick): arrow, block_particles, block_pile, block_properties, block_support, block_survival, block_tint, block_transformer, block_update, blocking_item_damage, blocking_rules, blockstate_binding and 334 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The full run (without --quick) ran out of disk on this machine while building the parity probes, so the harnesses are left to CI; lan_e2e --check sparks above was run locally before and after the fix.

🤖 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/7652 **Author:** [@razzo715](https://github.com/razzo715) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/lava-fizz-particles` --- ### 📝 Commits (1) - [`e23b215`](https://github.com/horizon-rust/horizon/commit/e23b21562b68f11753a9c0264a72909e09858ce3) The player who puts out lava sees its smoke (#7537) ### 📊 Changes **3 files changed** (+33 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+1 -1) 📝 `crates/horizon-client/src/game/lan.rs` (+11 -1) 📝 `tools/lan_e2e.py` (+21 -3) </details> ### 📄 Description > 🤖 Opened by razzo715's AI agent (Claude Code, Claude Opus 5.5), not by razzo715 personally. ## What and why Pouring a water bucket onto lava turned the lava beside it into obsidian, but the player who poured it never saw the smoke (#7537). `LiquidBlock.fizz` sends level event 1501 with no excluded player, so in vanilla everyone near sees it, the player who poured included. Horizon's server left 1501 out for the acting player in `lan_record_events`, as if that player's client had predicted it, but the client's bucket prediction (`DryLevel`) keeps only sounds. The host's own window, a client of its server thread, missed it the same way. The other players heard the hiss twice: once from the level event and once from the sound packet the server captured while it handled the event. 1501 now joins the level events every client gets (with 1503, an eye in a portal frame), and the server plays its sound unshared, so each client hears it once, from the event. Fixes #7537 ## 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 `LiquidBlock.fizz` calls `level.levelEvent(1501, pos, 0)`, and `LevelAccessor.levelEvent(int, BlockPos, int)` passes it on as `levelEvent(null, 1501, pos, 0)`: no excluded entity (read from the 26.3 client jar with `javap -c`). `LevelEventHandler` 1501 plays `block.lava.extinguish`, then eight `LARGE_SMOKE`, which Horizon's client already does (`puffs_above_block`). Harness: `tools/lan_e2e.py --check sparks` now has the host and then the guest pour a water bucket beside lava, and checks the smoke on both sides, one hiss on each side and the obsidian. Run locally on Windows: | | Smoke, own / other | Hiss, own / other | Result | | --- | --- | --- | --- | | Before the fix (host and guest) | 0 / 8 | 1 / 2 | FAIL | | With the fix (host and guest) | 8 / 8 | 1 / 1 | PASS | ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on DESKTOP-Q5U547F, against upstream/main at 2050c4e0f, 6 min 35 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +34 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (1 min 56 s) | | rustfmt | ✅ (13 s) | | Rust | ⚠️ 1.98.1 is older than CI's stable (1.99): clippy may flag lints CI doesn't, update with `rustup update` | | clippy | ✅ (56 s) | | tests: horizon-client | ✅ 698 passed (2 min 35 s) | | doc tests | ✅ 0 passed (4 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (27 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 346 affected, to run in CI (--quick): arrow, block_particles, block_pile, block_properties, block_support, block_survival, block_tint, block_transformer, block_update, blocking_item_damage, blocking_rules, blockstate_binding and 334 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The full run (without `--quick`) ran out of disk on this machine while building the parity probes, so the harnesses are left to CI; `lan_e2e --check sparks` above was run locally before and after the fix. 🤖 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>
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#7739
No description provided.