Squid ink: draw the squirt's voice pitch even when silent

Mob.makeSound calls getVoicePitch before Entity.playSound checks
isSilent, so the squid's random advances either way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-26 15:48:37 +01:00
parent fd0cb00296
commit 75f7029d01
+2 -1
View File
@@ -37,8 +37,9 @@ pub fn spawn_ink(m: &mut Mob) {
} else {
"squid_ink"
};
// makeSound draws the voice pitch even for a silent squid.
let pitch = m.voice_pitch();
if !m.silent {
let pitch = m.voice_pitch();
let at = [m.position.x, m.position.y, m.position.z];
m.outbox.push(MobEvent::Sound(
sound,