[PR #1163] [CLOSED] Fix main's build: tint moving blocks at their position (#1113 after #1115) #3376

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/1163
Author: @ludovic111
Created: 10/22/2026
Status: ❌ Closed

Base: main ← Head: fix/main-moving-block-tint


📝 Commits (1)

  • ca8552e Fix main's build: tint moving blocks at their position

📊 Changes

1 file changed (+5 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/moving_pistons.rs (+5 -2)

📄 Description

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

What

main doesn't compile since #1113 merged (checks failed on ee3ac165):

error[E0061]: this method takes 2 arguments but 1 argument was supplied
  --> crates/horizon-client/src/game/moving_pistons.rs:91:25
   |     let tint = self.particle_sprite(state).map(|(_, tint)| tint);

#1115 (break particles) gave particle_sprite a block position for the biome tint. #1113 (moving pistons) was written before that and merged after it, so it still called particle_sprite(state).

Fix

Pass the moving block's position. That's the pos vanilla gives createMovingBlock in PistonHeadRenderer.extractRenderState, blockEntity.getBlockPos().relative(direction.getOpposite()), and basePos for the base. Horizon already passes the same position as seed, so a moving grass block or leaves are tinted with the biome where they are, as in vanilla.

Proof (Mac mini)

cargo fmt --all --check                                                     OK
set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings      exit 0
cargo test -p horizon-client piston                                         ok
tools/parity.py --changed origin/main --list                                0 of 327 harnesses (none depend on the file)

Found while building the Intel macOS target for #1161. It blocks every branch's build, so merge it first.

🤖 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/1163 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/main-moving-block-tint` --- ### 📝 Commits (1) - [`ca8552e`](https://github.com/horizon-rust/horizon/commit/ca8552eb50e7431af0c82a673141a4500d037e09) Fix main's build: tint moving blocks at their position ### 📊 Changes **1 file changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/moving_pistons.rs` (+5 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What main doesn't compile since #1113 merged (`checks` failed on ee3ac165): ``` error[E0061]: this method takes 2 arguments but 1 argument was supplied --> crates/horizon-client/src/game/moving_pistons.rs:91:25 | let tint = self.particle_sprite(state).map(|(_, tint)| tint); ``` #1115 (break particles) gave `particle_sprite` a block position for the biome tint. #1113 (moving pistons) was written before that and merged after it, so it still called `particle_sprite(state)`. ## Fix Pass the moving block's position. That's the `pos` vanilla gives `createMovingBlock` in `PistonHeadRenderer.extractRenderState`, `blockEntity.getBlockPos().relative(direction.getOpposite())`, and `basePos` for the base. Horizon already passes the same position as `seed`, so a moving grass block or leaves are tinted with the biome where they are, as in vanilla. ## Proof (Mac mini) ``` cargo fmt --all --check OK set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings exit 0 cargo test -p horizon-client piston ok tools/parity.py --changed origin/main --list 0 of 327 harnesses (none depend on the file) ``` Found while building the Intel macOS target for #1161. It blocks every branch's build, so merge it first. 🤖 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#3376
No description provided.