From fba004eb3d6b44250fa4e8bcd4d72b700e4a58c5 Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Mon, 26 Oct 2026 21:22:41 +0100 Subject: [PATCH] Skip leaves in the no-leaves heightmap for firefly bush sounds --- crates/horizon-client/src/game/render_tick.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/game/render_tick.rs b/crates/horizon-client/src/game/render_tick.rs index d106e32ad..70e404a3d 100644 --- a/crates/horizon-client/src/game/render_tick.rs +++ b/crates/horizon-client/src/game/render_tick.rs @@ -33,7 +33,14 @@ fn motion_blocking_leaves( let mut y = from.min(MIN_Y + HEIGHT - 1); while y > MIN_Y { let f = facts.get(world.block(x, y, z)); - if f.full_collision || f.fluid != Fluid::None || leaves && f.name.contains("leaves") { + // #minecraft:leaves block motion, but MOTION_BLOCKING_NO_LEAVES skips them + // (their water still counts). + let blocks = if f.name.ends_with("_leaves") { + leaves + } else { + f.full_collision + }; + if blocks || f.fluid != Fluid::None { return y + 1; } y -= 1;