From d5fa5e32b37754b3b5c136e58821e48cd3b7c2ff Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Tue, 13 Jan 2026 10:51:30 -0600 Subject: Rename Instance to World (#304) --- azalea/src/pathfinder/debug.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea/src/pathfinder/debug.rs') diff --git a/azalea/src/pathfinder/debug.rs b/azalea/src/pathfinder/debug.rs index 25f82946..7fe44919 100644 --- a/azalea/src/pathfinder/debug.rs +++ b/azalea/src/pathfinder/debug.rs @@ -1,4 +1,4 @@ -use azalea_client::{chat::SendChatEvent, local_player::InstanceHolder}; +use azalea_client::{chat::SendChatEvent, local_player::WorldHolder}; use azalea_core::position::Vec3; use bevy_ecs::prelude::*; @@ -35,7 +35,7 @@ use super::ExecutingPath; pub struct PathfinderDebugParticles; pub fn debug_render_path_with_particles( - mut query: Query<(Entity, &ExecutingPath, &InstanceHolder), With>, + mut query: Query<(Entity, &ExecutingPath, &WorldHolder), With>, // chat_events is Option because the tests don't have SendChatEvent // and we have to use ResMut because bevy doesn't support Option chat_events: Option>>, @@ -50,12 +50,12 @@ pub fn debug_render_path_with_particles( *tick_count += 1; return; } - for (entity, executing_path, instance_holder) in &mut query { + for (entity, executing_path, world_holder) in &mut query { if executing_path.path.is_empty() { continue; } - let chunks = &instance_holder.instance.read().chunks; + let chunks = &world_holder.shared.read().chunks; let mut start = executing_path.last_reached_node; for (i, edge) in executing_path.path.iter().enumerate() { -- cgit v1.2.3