aboutsummaryrefslogtreecommitdiff
path: root/azalea
diff options
context:
space:
mode:
Diffstat (limited to 'azalea')
-rwxr-xr-xazalea/examples/pvp.rs2
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));