aboutsummaryrefslogtreecommitdiffstats
path: root/src/server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs
index f426b38..413c7fd 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -591,7 +591,7 @@ const HEALTH_REGEN: f32 = 5.;
fn health_regen(
health_regen_timer: Res<HealthRegenTimer>,
mut connection_manager: ResMut<ServerConnectionManager>,
- mut healths: Query<(&PlayerId, &mut Health, &EffectiveStats)>,
+ mut healths: Query<(&PlayerId, &mut Health, &EffectiveStats), With<Player>>,
) {
if health_regen_timer.0.just_finished() {
for (target_player, mut health, effective_stats) in healths.iter_mut() {