mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 11:06:11 -10:00
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:
1 parent
eb7e1af600
commit
86d09bfcb7
1 file changed
+3
-5
@@ -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);
|
||||
Reference in new issue
Block a user