query to single

This commit is contained in:
2026-09-17 22:47:16 +02:00
parent dde458ef4f
commit 312df7fee0
+1 -1
View File
@@ -38,7 +38,7 @@ fn spawn_player(mut commands: Commands) {
pub(crate) fn move_player( pub(crate) fn move_player(
input: Res<ButtonInput<KeyCode>>, input: Res<ButtonInput<KeyCode>>,
time: Res<Time>, time: Res<Time>,
mut player: Query<(&mut Velocity, &mut Transform), With<Player>>, mut player: Single<(&mut Velocity, &mut Transform), With<Player>>,
mut fall_started: ResMut<FallStarted>, mut fall_started: ResMut<FallStarted>,
) { ) {
// If matching entity // If matching entity