hotfix: enemy following the location of non-player entities

This commit is contained in:
Muhammad Nauman Raza 2024-05-27 23:18:10 +01:00
parent 3d082b8cc8
commit 27b3d44fdb
No known key found for this signature in database
GPG key ID: B0EF3A98B29ADB1D

View file

@ -22,7 +22,7 @@ pub struct Enemy {
pub fn enemy_movement(
time: Res<Time>,
mut set: ParamSet<(
Query<&Transform, Without<Enemy>>,
Query<&Transform, With<Player>>,
Query<&mut Transform, With<Enemy>>,
)>,
mut enemy_query: Query<&Enemy>,