From a9820dfd79bf24a0a6fcb2345aad6c79a21585a5 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 15 Apr 2025 22:04:43 -0430 Subject: make goto async and clean up some examples --- azalea-world/src/find_blocks.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'azalea-world/src') diff --git a/azalea-world/src/find_blocks.rs b/azalea-world/src/find_blocks.rs index 068a5029..46c1f8bb 100644 --- a/azalea-world/src/find_blocks.rs +++ b/azalea-world/src/find_blocks.rs @@ -116,7 +116,10 @@ impl Instance { /// Find all the coordinates of a block in the world. /// /// This returns an iterator that yields the [`BlockPos`]s of blocks that - /// are in the given block states. It's sorted by `x+y+z`. + /// are in the given block states. + /// + /// Note that this is sorted by `x+y+z` and not `x^2+y^2+z^2` for + /// optimization purposes. pub fn find_blocks<'a>( &'a self, nearest_to: impl Into, -- cgit v1.2.3