Replace usage of another deprecated function
Some checks failed
Basic checks / Basic build-and-test supertask (push) Failing after 29s

This commit is contained in:
2025-07-27 11:08:59 -05:00
parent e605bbf80d
commit f848de6b2e

View File

@@ -175,7 +175,7 @@ fn input_ship_rotation(
keyboard_input: Res<ButtonInput<KeyCode>>, keyboard_input: Res<ButtonInput<KeyCode>>,
mut query: Query<&mut Rotation, With<Ship>>, mut query: Query<&mut Rotation, With<Ship>>,
) { ) {
let Ok(mut rotation) = query.get_single_mut() else { let Ok(mut rotation) = query.single_mut() else {
let count = query.iter().count(); let count = query.iter().count();
panic!("There should be exactly one player ship! Instead, there seems to be {count}."); panic!("There should be exactly one player ship! Instead, there seems to be {count}.");
}; };