[PR #4193] [MERGED] Clear a respawned end crystal's beam for LAN guests #5472

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

📋 Pull Request Information

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

Base: main ← Head: fix/issue-4190-crystal-beam-reset


📝 Commits (1)

  • 6b0d88b Send a cleared end crystal beam to LAN guests (#4190)

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/lan_entities.rs (+3 -0)
📝 crates/horizon-client/src/lan/entity.rs (+28 -0)

📄 Description

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

Refs #4190. This PR does not close the issue: the reporter's mode (LAN or single player) is not stated, and only the LAN path is changed here.

Cause (from code): in lan_entities.rs, a crystal with no beam is left out of the entity state, and no default is listed for the beam entry (index 8). So send_dirty never tells LAN guests the beam was cleared, and they keep drawing the respawn beams. The host side (reset_spike_crystals, finish_respawn) was already correct.

Change: the end-crystal loop lists OptPos(None) as the beam default. The SetEntityData packet goes out only when a previously sent beam is removed. Other entities' index 8 are not changed. The new test a_cleared_crystal_beam_is_sent fails without the default.

Tested: cargo fmt --check, cargo clippy -p horizon-client --all-targets -- -D warnings pass. cargo test -p horizon-client --lib lan:: passes (59, 1 ignored).

Not tested: no in-game or LAN run, and the issue was not reproduced. Single-player is not changed; by code reading it was already correct. 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/4193 **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-4190-crystal-beam-reset` --- ### 📝 Commits (1) - [`6b0d88b`](https://github.com/horizon-rust/horizon/commit/6b0d88bf88afb936c33fd6c736b5b7790ec1d538) Send a cleared end crystal beam to LAN guests (#4190) ### 📊 Changes **2 files changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan_entities.rs` (+3 -0) 📝 `crates/horizon-client/src/lan/entity.rs` (+28 -0) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Refs #4190. This PR does not close the issue: the reporter's mode (LAN or single player) is not stated, and only the LAN path is changed here. **Cause (from code):** in `lan_entities.rs`, a crystal with no beam is left out of the entity state, and no default is listed for the beam entry (index 8). So `send_dirty` never tells LAN guests the beam was cleared, and they keep drawing the respawn beams. The host side (`reset_spike_crystals`, `finish_respawn`) was already correct. **Change:** the end-crystal loop lists `OptPos(None)` as the beam default. The `SetEntityData` packet goes out only when a previously sent beam is removed. Other entities' index 8 are not changed. The new test `a_cleared_crystal_beam_is_sent` fails without the default. **Tested:** `cargo fmt --check`, `cargo clippy -p horizon-client --all-targets -- -D warnings` pass. `cargo test -p horizon-client --lib lan::` passes (59, 1 ignored). **Not tested:** no in-game or LAN run, and the issue was not reproduced. Single-player is not changed; by code reading it was already correct. 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:49 +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#5472
No description provided.