aboutsummaryrefslogtreecommitdiff
path: root/azalea-world/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-10-05 08:43:52 +0330
committermat <git@matdoes.dev>2025-10-05 08:43:52 +0330
commit682f3c0e95966c39b3d135fc6364f891f3dfb30a (patch)
treee13407411cecbada972284109d978460cc10cf8e /azalea-world/src
parent2b9c453ade60bf4a37e2d77059641dc81b011be0 (diff)
downloadazalea-drasl-682f3c0e95966c39b3d135fc6364f891f3dfb30a.tar.xz
add Client::query_entity
Diffstat (limited to 'azalea-world/src')
-rw-r--r--azalea-world/src/chunk_storage.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs
index 2efd002d..d38c5ef9 100644
--- a/azalea-world/src/chunk_storage.rs
+++ b/azalea-world/src/chunk_storage.rs
@@ -404,6 +404,7 @@ impl Chunk {
}
}
+ /// Get the biome at the given position, or `None` if it's out of bounds.
pub fn get_biome(&self, pos: ChunkBiomePos, min_y: i32) -> Option<Biome> {
if pos.y < min_y {
// y position is out of bounds