From 89747692d2fd885240b8475d68ead9cc29623489 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Thu, 22 Oct 2026 07:24:24 +0200 Subject: [PATCH] Moving pistons: pass the block position to particle_sprite (main build fix) #1113 (moving pistons) and #1115 (break particles, which gave particle_sprite a position for its biome tint) each passed alone; together main no longer compiled. A moving block now takes its tint at its own block position, as vanilla's moving-block renderer reads the level's tint there. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/moving_pistons.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/game/moving_pistons.rs b/crates/horizon-client/src/game/moving_pistons.rs index 8b47483df..17247850e 100644 --- a/crates/horizon-client/src/game/moving_pistons.rs +++ b/crates/horizon-client/src/game/moving_pistons.rs @@ -88,7 +88,9 @@ impl Game<'_> { light: u32, out: &mut Vec, ) { - let tint = self.particle_sprite(state).map(|(_, tint)| tint); + let tint = self + .particle_sprite(state, [seed.x, seed.y, seed.z]) + .map(|(_, tint)| tint); let start = out.len(); self.block_model_vertices( state,