From 53ea3e7224480c6e72c73a7fd4404bd0cde04fb1 Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Mon, 26 Oct 2026 22:00:04 +0100 Subject: [PATCH] Play the rain sound for this client only --- crates/horizon-client/src/game/render_tick.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/game/render_tick.rs b/crates/horizon-client/src/game/render_tick.rs index 2356fbffe..10404c0ba 100644 --- a/crates/horizon-client/src/game/render_tick.rs +++ b/crates/horizon-client/src/game/render_tick.rs @@ -354,7 +354,9 @@ impl Game<'_> { ("minecraft:weather.rain", 0.2, 1.0) }; let p = at.map(|c| f64::from(c) + 0.5); - self.audio.play(name, Some(p), volume, pitch); + // playLocalSound: guests make their own rain, so a host + // must not capture it for them. + self.audio.play_unshared(name, Some(p), volume, pitch); } } }