diff options
| author | mat <git@matdoes.dev> | 2025-06-11 22:58:41 -0630 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-11 22:58:41 -0630 |
| commit | a2606569bb79867d07a075bcf7b05730e4264d72 (patch) | |
| tree | fb97fb52aa0c4d7575f6bd5e4e36c2f01c87f942 /azalea/examples | |
| parent | 89ddd5e85f4f2fb98697df15528df6e07a3ddd07 (diff) | |
| download | azalea-drasl-a2606569bb79867d07a075bcf7b05730e4264d72.tar.xz | |
use owned instead of borrowed Vec3 more
Diffstat (limited to 'azalea/examples')
| -rw-r--r-- | azalea/examples/testbot/killaura.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/examples/testbot/killaura.rs b/azalea/examples/testbot/killaura.rs index 5458ea4e..586d90b2 100644 --- a/azalea/examples/testbot/killaura.rs +++ b/azalea/examples/testbot/killaura.rs @@ -31,7 +31,7 @@ pub fn tick(bot: Client, state: State) -> anyhow::Result<()> { continue; } - let distance = bot_position.distance_to(position); + let distance = bot_position.distance_to(**position); if distance < 4. && distance < nearest_distance { nearest_entity = Some(entity_id); nearest_distance = distance; |
