[PR #2082] [MERGED] Multiplayer: no break particles or sound when a player puts out fire #3991

Closed
opened 2026-11-03 04:13:51 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2082
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: fix/fire-extinguish-no-break-particles


📝 Commits (2)

  • c80b3b4 Multiplayer: no break particles or sound when a player puts out fire
  • fe19efb Predicted break: test BaseFireBlock by its class, as the server does

📊 Changes

1 file changed (+19 additions, -13 deletions)

View changed files

📝 crates/horizon-client/src/game/remote.rs (+19 -13)

📄 Description

What and why

Putting out fire on a server (or a LAN world) showed block break particles and played the wool break sound, as if fire were a solid block.

The client predicts a block break before the server answers. That prediction always played the block's break sound and spawned its destroy particles. Vanilla skips both for fire: BaseFireBlock.spawnDestroyByEntityParticles does nothing, so the player only hears the extinguish sound the server sends (level event 1009). Now the prediction skips them for blocks in #minecraft:fire too.

Single player already did this right (player_destroy sends 1009 instead of 2001 for fire).

Vanilla reference

  • MultiPlayerGameMode.destroyBlock calls Block.playerWillDestroy on the client, which calls spawnDestroyByEntityParticles (level event 2001: particles and break sound).
  • BaseFireBlock.spawnDestroyByEntityParticles is empty, and BaseFireBlock.playerWillDestroy sends level event 1009 on the server only.

Self-check

cargo check -p horizon-client passes.


🔄 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/2082 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/fire-extinguish-no-break-particles` --- ### 📝 Commits (2) - [`c80b3b4`](https://github.com/horizon-rust/horizon/commit/c80b3b4950363386a52fb3ddaaa9241f535f869a) Multiplayer: no break particles or sound when a player puts out fire - [`fe19efb`](https://github.com/horizon-rust/horizon/commit/fe19efb9172be2c00656c1c175b4a2bddf824d4e) Predicted break: test BaseFireBlock by its class, as the server does ### 📊 Changes **1 file changed** (+19 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+19 -13) </details> ### 📄 Description ## What and why Putting out fire on a server (or a LAN world) showed block break particles and played the wool break sound, as if fire were a solid block. The client predicts a block break before the server answers. That prediction always played the block's break sound and spawned its destroy particles. Vanilla skips both for fire: `BaseFireBlock.spawnDestroyByEntityParticles` does nothing, so the player only hears the extinguish sound the server sends (level event 1009). Now the prediction skips them for blocks in `#minecraft:fire` too. Single player already did this right (`player_destroy` sends 1009 instead of 2001 for fire). ## Vanilla reference - `MultiPlayerGameMode.destroyBlock` calls `Block.playerWillDestroy` on the client, which calls `spawnDestroyByEntityParticles` (level event 2001: particles and break sound). - `BaseFireBlock.spawnDestroyByEntityParticles` is empty, and `BaseFireBlock.playerWillDestroy` sends level event 1009 on the server only. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:51 +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#3991
No description provided.