[PR #2218] [MERGED] Update comparators when a copper golem moves items in or out of a chest #4111

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

📋 Pull Request Information

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

Base: main ← Head: fix/copper-golem-chest-comparator


📝 Commits (1)

  • 9c34506 Update comparators when a copper golem moves items in or out of a chest

📊 Changes

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

View changed files

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

📄 Description

What and why

When a copper golem took items from a chest or put items in, a comparator next to the chest kept showing the old signal until something else changed the chest. The golem only wrote the slot and never told the block that its contents changed. Now it calls the same "container changed" step that other item movers use (hoppers, players), so comparators update (and the other half of a double chest too).

Vanilla reference

  • TransportItemsBetweenContainers.pickUpItems and putDownItem (lines 508 and 514): container.setChanged() after the move.

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/2218 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/copper-golem-chest-comparator` --- ### 📝 Commits (1) - [`9c34506`](https://github.com/horizon-rust/horizon/commit/9c3450622b8b94f69540e87fa4e629ab8e1c654c) Update comparators when a copper golem moves items in or out of a chest ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/copper_golems.rs` (+4 -4) </details> ### 📄 Description ## What and why When a copper golem took items from a chest or put items in, a comparator next to the chest kept showing the old signal until something else changed the chest. The golem only wrote the slot and never told the block that its contents changed. Now it calls the same "container changed" step that other item movers use (hoppers, players), so comparators update (and the other half of a double chest too). ## Vanilla reference - `TransportItemsBetweenContainers.pickUpItems` and `putDownItem` (lines 508 and 514): `container.setChanged()` after the move. ## 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:14:46 +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#4111
No description provided.