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 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-22 07:24:24 +02:00
parent ee3ac16594
commit 89747692d2
@@ -88,7 +88,9 @@ impl Game<'_> {
light: u32,
out: &mut Vec<Vertex>,
) {
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,