diff --git a/voxygen/src/scene/mod.rs b/voxygen/src/scene/mod.rs index e56a3a9c35..3f69f0dfe6 100644 --- a/voxygen/src/scene/mod.rs +++ b/voxygen/src/scene/mod.rs @@ -560,7 +560,11 @@ impl Scene { .state .ecs() .read_storage::(), - &scene_data.state.ecs().read_storage::(), + scene_data + .state + .ecs() + .read_storage::() + .maybe(), ) .join() .filter(|(pos, _, light_anim, h)| { @@ -568,7 +572,7 @@ impl Scene { && light_anim.strength > 0.0 && (pos.0.distance_squared(player_pos) as f32) < loaded_distance.powi(2) + LIGHT_DIST_RADIUS - && !h.is_dead + && h.map_or(true, |h| !h.is_dead) }) .map(|(pos, interpolated, light_anim, _)| { // Use interpolated values if they are available