aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/packet/relative_updates.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-02-22 18:41:46 -0845
committermat <git@matdoes.dev>2026-02-22 18:41:46 -0845
commit341e99403b3b215a4ef09b02c0bd9ee40ac4205f (patch)
tree6653bd00d48b73e8464d05ddca01ed8a5cd2a93d /azalea-client/src/plugins/packet/relative_updates.rs
parentb4e4d2c001dddd530c6e416e841c571c7e127138 (diff)
downloadazalea-drasl-341e99403b3b215a4ef09b02c0bd9ee40ac4205f.tar.xz
use should_apply_entity_update for move_entity_pos packets
Diffstat (limited to 'azalea-client/src/plugins/packet/relative_updates.rs')
-rw-r--r--azalea-client/src/plugins/packet/relative_updates.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-client/src/plugins/packet/relative_updates.rs b/azalea-client/src/plugins/packet/relative_updates.rs
index 2f7112b8..d6367829 100644
--- a/azalea-client/src/plugins/packet/relative_updates.rs
+++ b/azalea-client/src/plugins/packet/relative_updates.rs
@@ -23,7 +23,7 @@ use azalea_world::PartialWorld;
use bevy_ecs::prelude::*;
use derive_more::{Deref, DerefMut};
use parking_lot::RwLock;
-use tracing::warn;
+use tracing::{debug, warn};
use crate::packet::as_system;
@@ -94,7 +94,9 @@ pub fn should_apply_entity_update(
let Ok((minecraft_entity_id, updates_received, local_entity)) = entity_update_query.get(entity)
else {
- warn!("called should_apply_entity_update on an entity with missing components");
+ // this can happen when the entity despawns in the same Update that we got a
+ // relative update for it
+ debug!("called should_apply_entity_update on an entity with missing components {entity:?}");
return false;
};