[PR #1164] [MERGED] Fix main's build: moving pistons pass the block position to particle_sprite #3378

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

📋 Pull Request Information

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

Base: main ← Head: fix/moving-piston-tint-pos


📝 Commits (1)

  • 8974769 Moving pistons: pass the block position to particle_sprite (main build fix)

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/moving_pistons.rs (+3 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What and why

Main doesn't compile (E0061 in crates/horizon-client/src/game/moving_pistons.rs:91). #1113 (moving pistons) called particle_sprite(state), and #1115 (break particles) had meanwhile changed it to particle_sprite(state, pos) for the biome tint. Each PR passed alone. This passes the moving block's own position, which matches vanilla: the moving-block renderer reads the level's tint at that position.

Proof

  • cargo fmt --all --check passes.
  • cargo clippy --workspace --all-targets -- -D warnings (pipefail) exits 0.
  • cargo test -p horizon-client: 984 + 91 + 15 + smaller suites, all passing.

🤖 Generated with Claude Code


🔄 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/1164 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/moving-piston-tint-pos` --- ### 📝 Commits (1) - [`8974769`](https://github.com/horizon-rust/horizon/commit/89747692d2fd885240b8475d68ead9cc29623489) Moving pistons: pass the block position to particle_sprite (main build fix) ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/moving_pistons.rs` (+3 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why Main doesn't compile (E0061 in `crates/horizon-client/src/game/moving_pistons.rs:91`). #1113 (moving pistons) called `particle_sprite(state)`, and #1115 (break particles) had meanwhile changed it to `particle_sprite(state, pos)` for the biome tint. Each PR passed alone. This passes the moving block's own position, which matches vanilla: the moving-block renderer reads the level's tint at that position. ## Proof - `cargo fmt --all --check` passes. - `cargo clippy --workspace --all-targets -- -D warnings` (pipefail) exits 0. - `cargo test -p horizon-client`: 984 + 91 + 15 + smaller suites, all passing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:09:05 +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#3378
No description provided.