From b0bd992adcff71ee294dd05060e00e652f62a7b2 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Sun, 16 Mar 2025 13:41:17 -0500 Subject: Fluid physics fixes (#210) * start fixing code related to fluid physics * implement force_solid for blocks * afk pool test --- azalea-client/src/entity_query.rs | 4 +--- azalea-client/src/plugins/brand.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/entity_query.rs b/azalea-client/src/entity_query.rs index be892ee5..c711253a 100644 --- a/azalea-client/src/entity_query.rs +++ b/azalea-client/src/entity_query.rs @@ -106,9 +106,7 @@ where fn find(&self, ecs_lock: Arc>) -> Option { let mut ecs = ecs_lock.lock(); let mut query = ecs.query_filtered::<(Entity, Q), Filter>(); - let entity = query.iter(&ecs).find(|(_, q)| (self)(q)).map(|(e, _)| e); - - entity + query.iter(&ecs).find(|(_, q)| (self)(q)).map(|(e, _)| e) } } diff --git a/azalea-client/src/plugins/brand.rs b/azalea-client/src/plugins/brand.rs index e15a6c67..5ee8e52c 100644 --- a/azalea-client/src/plugins/brand.rs +++ b/azalea-client/src/plugins/brand.rs @@ -24,7 +24,7 @@ impl Plugin for BrandPlugin { } } -fn handle_end_login_state( +pub fn handle_end_login_state( mut removed: RemovedComponents, query: Query<&ClientInformation>, mut send_packet_events: EventWriter, -- cgit v1.2.3