[PR #4101] [MERGED] Keep the potion colour on lingering clouds #5419

Closed
opened 2026-11-03 05:12:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4101
Author: @DUzzL
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/issue-4090-lingering-cloud-color


📝 Commits (1)

  • 2c803ae fix(client): send lingering potion cloud colour to clients

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/lan_entities.rs (+5 -1)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4090

Cause: tick_lan takes the LAN hub out of self.lan while it builds the entity states. network_particle reads self.lan, so it returned nothing for potion clouds, and the particle data (the potion colour) was never sent. Clients kept the white default. The dragon breath path already avoids this with hub_particle.

Change: one line in lan_entities.rs encodes the potion particle with Self::hub_particle(hub, ...), matching the dragon breath path.

Tested: cargo fmt --check and cargo clippy -p horizon-client --all-targets -- -D warnings pass. cargo test -p horizon-client --lib: 710 passed, 1 failed (title::tests::each_world_preset_writes_its_own_generator, a Windows path error NotADirectory in a title-screen test this change does not touch). No test covers the changed path (the lan_entities filter matches none).

Not tested: no in-game run with a potion cloud, so the colour on clients is not confirmed. No vanilla parity run (no .local vanilla data here). tools/pr_ready.py not run.


🔄 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/4101 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/issue-4090-lingering-cloud-color` --- ### 📝 Commits (1) - [`2c803ae`](https://github.com/horizon-rust/horizon/commit/2c803ae8754e1e24133aa4ca77c3d2c744c588fc) fix(client): send lingering potion cloud colour to clients ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_entities.rs` (+5 -1) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4090 **Cause:** `tick_lan` takes the LAN hub out of `self.lan` while it builds the entity states. `network_particle` reads `self.lan`, so it returned nothing for potion clouds, and the particle data (the potion colour) was never sent. Clients kept the white default. The dragon breath path already avoids this with `hub_particle`. **Change:** one line in `lan_entities.rs` encodes the potion particle with `Self::hub_particle(hub, ...)`, matching the dragon breath path. **Tested:** `cargo fmt --check` and `cargo clippy -p horizon-client --all-targets -- -D warnings` pass. `cargo test -p horizon-client --lib`: 710 passed, 1 failed (`title::tests::each_world_preset_writes_its_own_generator`, a Windows path error `NotADirectory` in a title-screen test this change does not touch). No test covers the changed path (the `lan_entities` filter matches none). **Not tested:** no in-game run with a potion cloud, so the colour on clients is not confirmed. No vanilla parity run (no `.local` vanilla data here). `tools/pr_ready.py` not run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:28 +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#5419
No description provided.