[PR #5934] [MERGED] Send powder-snow walk snowflakes from the server #6572

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

📋 Pull Request Information

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

Base: main ← Head: fix/5836-powder-snow-walk-particles


📝 Commits (2)

  • 47f8502 Send powder-snow walk snowflakes from the server
  • 4516109 Merge main into fix/5836-powder-snow-walk-particles

📊 Changes

4 files changed (+161 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_actions.rs (+9 -0)
📝 crates/horizon-client/src/game/lan_particles.rs (+33 -0)
📝 crates/horizon-client/src/motion.rs (+117 -3)
📝 crates/horizon-protocol/src/packets/play.rs (+2 -1)

📄 Description

🤖 Opened by doodlyyousuf's AI agent (Grok 4.6), not by doodlyyousuf personally.

Fixes #5836

PowderSnowBlock.entityInside sends a SNOWFLAKE particle (ServerLevel.sendParticles, count 1, no spread, RandomizationType.ALTERNATIVE) when a player walks through powder snow. Horizon already built that event on the in-frame Game, but the path players run never drew it:

  • server_block_damage (damage_only) only recorded freeze, so the serving Game never emitted a snowflake.
  • Guest ticks dropped MotionEvent::Snowflake.
  • The remote tick skipped the event, which is correct: vanilla's particle is server-only.

This emits the snowflake on the server copy, sends it to nearby players, and keeps the client copy from spawning a second one. handleParticleEvent now applies ALTERNATIVE randomization (nextDouble * dist, packet speed as velocity).

Vanilla: PowderSnowBlock.entityInside, ServerLevel.sendParticles, ClientPacketListener.handleParticleEvent.

cargo test -p horizon-client --lib --no-default-features motion::tests::walking_through_powder_snow_asks_for_a_snowflake
cargo clippy -p horizon-client --lib --bins --no-default-features -- -D warnings

🤖 Generated with Grok 4.6


🔄 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/5934 **Author:** [@doodlyyousuf](https://github.com/doodlyyousuf) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/5836-powder-snow-walk-particles` --- ### 📝 Commits (2) - [`47f8502`](https://github.com/horizon-rust/horizon/commit/47f85029fe978d5dc31ceed4acf7147ee849f088) Send powder-snow walk snowflakes from the server - [`4516109`](https://github.com/horizon-rust/horizon/commit/45161095d6c426807921b10cf7507c1ab7667380) Merge main into fix/5836-powder-snow-walk-particles ### 📊 Changes **4 files changed** (+161 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_actions.rs` (+9 -0) 📝 `crates/horizon-client/src/game/lan_particles.rs` (+33 -0) 📝 `crates/horizon-client/src/motion.rs` (+117 -3) 📝 `crates/horizon-protocol/src/packets/play.rs` (+2 -1) </details> ### 📄 Description > 🤖 Opened by doodlyyousuf's AI agent (Grok 4.6), not by doodlyyousuf personally. Fixes #5836 `PowderSnowBlock.entityInside` sends a SNOWFLAKE particle (`ServerLevel.sendParticles`, count 1, no spread, `RandomizationType.ALTERNATIVE`) when a player walks through powder snow. Horizon already built that event on the in-frame Game, but the path players run never drew it: - `server_block_damage` (`damage_only`) only recorded freeze, so the serving Game never emitted a snowflake. - Guest ticks dropped `MotionEvent::Snowflake`. - The remote tick skipped the event, which is correct: vanilla's particle is server-only. This emits the snowflake on the server copy, sends it to nearby players, and keeps the client copy from spawning a second one. `handleParticleEvent` now applies ALTERNATIVE randomization (`nextDouble * dist`, packet speed as velocity). Vanilla: `PowderSnowBlock.entityInside`, `ServerLevel.sendParticles`, `ClientPacketListener.handleParticleEvent`. ``` cargo test -p horizon-client --lib --no-default-features motion::tests::walking_through_powder_snow_asks_for_a_snowflake cargo clippy -p horizon-client --lib --bins --no-default-features -- -D warnings ``` 🤖 Generated with Grok 4.6 --- <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: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#6572
No description provided.