diff options
| author | mat <github@matdoes.dev> | 2022-12-11 02:24:31 -0600 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-12-11 02:24:31 -0600 |
| commit | b60a55e61ed5ee7a37df20802b6d95543657ea40 (patch) | |
| tree | 0de5fbd490eddb41f04ead69d1042de8e2c027ea /azalea/examples | |
| parent | 37b9f10b3bcc74b48df2c6843a5286a7d41e2414 (diff) | |
| download | azalea-drasl-b60a55e61ed5ee7a37df20802b6d95543657ea40.tar.xz | |
rename find_entity to entity_by & add entities_by
Diffstat (limited to 'azalea/examples')
| -rwxr-xr-x | azalea/examples/pvp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/examples/pvp.rs b/azalea/examples/pvp.rs index 76507e64..9d2fdc35 100755 --- a/azalea/examples/pvp.rs +++ b/azalea/examples/pvp.rs @@ -50,7 +50,7 @@ async fn swarm_handle( if let Some(target) = swarm .worlds .read() - .find_entity(|e| e.id == "minecraft:player") + .entity_by(|e| e.id == "minecraft:player") { for (bot, bot_state) in swarm { bot.tick_goto_goal(pathfinder::Goals::Reach(target.bounding_box)); |
