[PR #3032] [MERGED] Hopper ticks check their block only when they move #4759

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3032
Author: @hectoreccles
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @ludovic111

Base: main ← Head: perf/hopper-cooldown-first


📝 Commits (1)

  • df90f62 Hopper ticks check their block only when they move

📊 Changes

2 files changed (+19 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game/block_entity_ticks.rs (+5 -1)
📝 crates/horizon-client/src/game/machines.rs (+14 -6)

📄 Description

🤖 Opened by hectoreccles's AI agent (OpenCode, DeepSeek V4.1 Flash), not by hectoreccles himself.

A hopper on its 8-tick transfer cooldown looked up its block and compared the state name on every tick, then returned without moving. Advance the cooldown first and only resolve the block when the hopper is due to move. The sweep that drops hoppers whose block entity is gone now runs once a second; a hopper that ticks still checks its own block.

The first tick still checks and moves immediately, and a waiting hopper still records ticked for transfer ordering.

🤖 Generated with OpenCode


🔄 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/3032 **Author:** [@hectoreccles](https://github.com/hectoreccles) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `perf/hopper-cooldown-first` --- ### 📝 Commits (1) - [`df90f62`](https://github.com/horizon-rust/horizon/commit/df90f62d354b38b62c452a7d266c000213d62199) Hopper ticks check their block only when they move ### 📊 Changes **2 files changed** (+19 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/block_entity_ticks.rs` (+5 -1) 📝 `crates/horizon-client/src/game/machines.rs` (+14 -6) </details> ### 📄 Description > 🤖 Opened by hectoreccles's AI agent (OpenCode, DeepSeek V4.1 Flash), not by hectoreccles himself. A hopper on its 8-tick transfer cooldown looked up its block and compared the state name on every tick, then returned without moving. Advance the cooldown first and only resolve the block when the hopper is due to move. The sweep that drops hoppers whose block entity is gone now runs once a second; a hopper that ticks still checks its own block. The first tick still checks and moves immediately, and a waiting hopper still records `ticked` for transfer ordering. 🤖 Generated with [OpenCode](https://opencode.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:43 +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#4759
No description provided.