aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/interact/pick.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src/plugins/interact/pick.rs')
-rw-r--r--azalea-client/src/plugins/interact/pick.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/azalea-client/src/plugins/interact/pick.rs b/azalea-client/src/plugins/interact/pick.rs
index 8ffe47e8..1fed584a 100644
--- a/azalea-client/src/plugins/interact/pick.rs
+++ b/azalea-client/src/plugins/interact/pick.rs
@@ -17,7 +17,7 @@ use azalea_physics::{
clip::{BlockShapeType, ClipContext, FluidPickType},
collision::entity_collisions::{AabbQuery, get_entities},
};
-use azalea_world::{Instance, InstanceContainer, InstanceName};
+use azalea_world::{World, WorldName, Worlds};
use bevy_ecs::prelude::*;
use derive_more::{Deref, DerefMut};
@@ -37,13 +37,13 @@ pub fn update_hit_result_component(
&Position,
&EntityDimensions,
&LookDirection,
- &InstanceName,
+ &WorldName,
&Physics,
&Attributes,
),
With<LocalEntity>,
>,
- instance_container: Res<InstanceContainer>,
+ worlds: Res<Worlds>,
aabb_query: AabbQuery,
pickable_query: MaybePickableEntityQuery,
) {
@@ -63,7 +63,7 @@ pub fn update_hit_result_component(
let eye_position = position.up(dimensions.eye_height.into());
- let Some(world_lock) = instance_container.get(world_name) else {
+ let Some(world_lock) = worlds.get(world_name) else {
continue;
};
let world = world_lock.read();
@@ -117,7 +117,7 @@ pub struct PickOpts<'world, 'state, 'a, 'b, 'c> {
look_direction: LookDirection,
eye_position: Vec3,
aabb: &'a Aabb,
- world: &'a Instance,
+ world: &'a World,
entity_pick_range: f64,
block_pick_range: f64,
aabb_query: &'a AabbQuery<'world, 'state, 'b>,
@@ -246,7 +246,7 @@ struct PickEntityOpts<'world, 'state, 'a, 'b> {
source_entity: Entity,
eye_position: Vec3,
end_position: Vec3,
- world: &'a azalea_world::Instance,
+ world: &'a azalea_world::World,
pick_range_squared: f64,
predicate: &'a dyn Fn(Entity) -> bool,
aabb: &'a Aabb,