From d77569c6720a9ea593460b7fc0398f1328e009c6 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Tue, 27 Oct 2026 07:02:35 +0100 Subject: [PATCH] The dragon's ambient pitch draws from its own random LivingEntity.getVoicePitch uses this.random, the same random the ambient roll draws from. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/dragon.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/horizon-client/src/game/dragon.rs b/crates/horizon-client/src/game/dragon.rs index 96c8ef478..d8a7f84d3 100644 --- a/crates/horizon-client/src/game/dragon.rs +++ b/crates/horizon-client/src/game/dragon.rs @@ -1670,8 +1670,8 @@ impl Game<'_> { if roll < waited { d.ambient_time = -AMBIENT_INTERVAL; let at = [d.position.x, d.position.y, d.position.z]; - // LivingEntity.getVoicePitch. - let r = &mut self.world.random; + // LivingEntity.getVoicePitch, from the dragon's own random. + let r = &mut d.random; let pitch = (r.next_float() - r.next_float()) * 0.2 + 1.0; self.audio.play( "minecraft:entity.ender_dragon.ambient",