Skip to content

Commit

Permalink
Update render_distance_system.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Amatsugu committed Nov 12, 2024
1 parent ba7b3ab commit 6caeb6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion game/main/src/map_rendering/render_distance_system.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use bevy::prelude::*;
use shared::tags::MainCamera;

use crate::camera_system::components::PhosCamera;

Expand Down Expand Up @@ -52,7 +53,7 @@ impl Default for RenderDistanceVisibility {

fn render_distance_system(
mut objects: Query<(&Transform, &mut Visibility, &RenderDistanceVisibility)>,
camera_query: Query<&Transform, With<PhosCamera>>,
camera_query: Query<&Transform, With<MainCamera>>,
settings: Res<RenderDistanceSettings>,
) {
let camera = camera_query.single();
Expand Down

0 comments on commit 6caeb6c

Please sign in to comment.