[PR #4381] [MERGED] Send the copper golem chest lid event to LAN guests #5594

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

📋 Pull Request Information

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

Base: main ← Head: fix/issue-4370-golem-chest-lid-guests


📝 Commits (1)

  • 8a196ee Copper golems: send the chest lid block event to guests too

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/copper_golems.rs (+3 -0)

📄 Description

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

Refs #4370. This PR fixes only the second bug in the report (a copper golem using a chest does not animate the lid for guests). The first bug (vehicle containers do not open on right-click) is not confirmed and is not addressed.

Cause: golem_chest_open and recheck_golem_openers in game/copper_golems.rs called block_entity_event only. The player path also calls lan_block_event, which is what sends the lid event to LAN guests, so guests never saw the golem's chest open.

Change: both golem paths also call lan_block_event, gated the same way as the player path. It queues an event only for guests and does nothing without a LAN hub. The host's own lid is not animated twice.

Tested: cargo fmt --check, cargo clippy -p horizon-client --all-targets -- -D warnings, and cargo test -p horizon-client --bins golem (3 of 3) pass.

Not tested: no in-game or LAN run. If the lid is also missing in singleplayer, that is a separate cause, not addressed 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/4381 **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-4370-golem-chest-lid-guests` --- ### 📝 Commits (1) - [`8a196ee`](https://github.com/horizon-rust/horizon/commit/8a196eeb770075ff0a68566f664972710367fd97) Copper golems: send the chest lid block event to guests too ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/copper_golems.rs` (+3 -0) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Refs #4370. This PR fixes only the second bug in the report (a copper golem using a chest does not animate the lid for guests). The first bug (vehicle containers do not open on right-click) is not confirmed and is not addressed. **Cause:** `golem_chest_open` and `recheck_golem_openers` in `game/copper_golems.rs` called `block_entity_event` only. The player path also calls `lan_block_event`, which is what sends the lid event to LAN guests, so guests never saw the golem's chest open. **Change:** both golem paths also call `lan_block_event`, gated the same way as the player path. It queues an event only for guests and does nothing without a LAN hub. The host's own lid is not animated twice. **Tested:** `cargo fmt --check`, `cargo clippy -p horizon-client --all-targets -- -D warnings`, and `cargo test -p horizon-client --bins golem` (3 of 3) pass. **Not tested:** no in-game or LAN run. If the lid is also missing in singleplayer, that is a separate cause, not addressed 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:13:38 +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#5594
No description provided.