Read the captured lead snap through CapturedSound's fields

Main made the audio capture a struct; the ignored resource test still
compared tuples and no longer compiled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Horizon agentandClaude Opus 5.5 committed 2026-11-05 04:08:08 +01:00
1 parent eb7e1af600
commit 86d09bfcb7
1 file changed
+3 -5
+3 -5
View File
@@ -861,12 +861,10 @@ mod tests {
let heard = game.audio.capture.take().unwrap_or_default();
let snaps: Vec<_> = heard
.into_iter()
.filter(|s| s.0 == "minecraft:item.lead.break")
.filter(|s| s.event == "minecraft:item.lead.break")
.map(|s| (s.position, s.volume, s.pitch))
.collect();
assert_eq!(
snaps,
vec![("minecraft:item.lead.break".to_owned(), feet, 1.0, 1.0)]
);
assert_eq!(snaps, vec![(feet, 1.0, 1.0)]);
}
}
horizon_client::impl_joined!(Rocket);