aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/loading.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-04 01:53:24 -0330
committermat <git@matdoes.dev>2025-06-04 01:53:24 -0330
commitf5f50b85e5d427aab6a0ef00570b4076b61babe8 (patch)
tree721524e3e4b079adeb87caf5bba96eef34b4239c /azalea-client/src/plugins/loading.rs
parentf311ac27d47c43eb4c33d760f3e1d1f2b8008a4f (diff)
downloadazalea-drasl-f5f50b85e5d427aab6a0ef00570b4076b61babe8.tar.xz
re-enable click prediction and fix related issues
Diffstat (limited to 'azalea-client/src/plugins/loading.rs')
-rw-r--r--azalea-client/src/plugins/loading.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/azalea-client/src/plugins/loading.rs b/azalea-client/src/plugins/loading.rs
index 33290f39..217d6f75 100644
--- a/azalea-client/src/plugins/loading.rs
+++ b/azalea-client/src/plugins/loading.rs
@@ -1,5 +1,5 @@
use azalea_core::tick::GameTick;
-use azalea_entity::InLoadedChunk;
+use azalea_entity::{InLoadedChunk, LocalEntity};
use azalea_physics::PhysicsSet;
use azalea_protocol::packets::game::ServerboundPlayerLoaded;
use bevy_app::{App, Plugin};
@@ -29,9 +29,17 @@ impl Plugin for PlayerLoadedPlugin {
#[derive(Component)]
pub struct HasClientLoaded;
+#[allow(clippy::type_complexity)]
pub fn player_loaded_packet(
mut commands: Commands,
- query: Query<Entity, (With<InLoadedChunk>, Without<HasClientLoaded>)>,
+ query: Query<
+ Entity,
+ (
+ With<LocalEntity>,
+ With<InLoadedChunk>,
+ Without<HasClientLoaded>,
+ ),
+ >,
) {
for entity in query.iter() {
commands.trigger(SendPacketEvent::new(entity, ServerboundPlayerLoaded));