diff options
| author | mat <git@matdoes.dev> | 2025-06-17 06:49:07 -1200 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-17 06:49:07 -1200 |
| commit | ffbe7a3e426e66c21c7156780728f96f8277c68a (patch) | |
| tree | 5358ab47c013cc848dd7d24781676062fc87da4e /azalea/examples | |
| parent | 319d144995e0ca635806941cbb5d6ceaf0fcf515 (diff) | |
| download | azalea-drasl-ffbe7a3e426e66c21c7156780728f96f8277c68a.tar.xz | |
1.21.6 (#215)
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot/killaura.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea/examples/testbot/killaura.rs b/azalea/examples/testbot/killaura.rs index 586d90b2..093495ea 100644 --- a/azalea/examples/testbot/killaura.rs +++ b/azalea/examples/testbot/killaura.rs @@ -2,7 +2,7 @@ use azalea::{ ecs::prelude::*, entity::{Dead, LocalEntity, Position, metadata::AbstractMonster}, prelude::*, - world::{InstanceName, MinecraftEntityId}, + world::InstanceName, }; use crate::State; @@ -21,12 +21,12 @@ pub fn tick(bot: Client, state: State) -> anyhow::Result<()> { { let mut ecs = bot.ecs.lock(); let mut query = ecs - .query_filtered::<(&MinecraftEntityId, &Position, &InstanceName), ( + .query_filtered::<(Entity, &Position, &InstanceName), ( With<AbstractMonster>, Without<LocalEntity>, Without<Dead>, )>(); - for (&entity_id, position, instance_name) in query.iter(&ecs) { + for (entity_id, position, instance_name) in query.iter(&ecs) { if instance_name != &bot_instance_name { continue; } |
