Play the rain sound for this client only

This commit is contained in:
Kacpherek
2026-10-26 22:00:04 +01:00
parent 147e5269c7
commit 53ea3e7224
@@ -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);
}
}
}