From e47dee388e1e7f051417244ab1c054f8b9acd755 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 25 Feb 2024 22:31:56 -0600 Subject: reduce allocations for collision detection --- azalea-block/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'azalea-block/src') diff --git a/azalea-block/src/lib.rs b/azalea-block/src/lib.rs index dc41b405..2a46fd01 100755 --- a/azalea-block/src/lib.rs +++ b/azalea-block/src/lib.rs @@ -59,6 +59,8 @@ impl BlockState { state_id <= Self::max_state() } + /// Returns true if the block is air. This only checks for normal air, not + /// other types like cave air. #[inline] pub fn is_air(&self) -> bool { self == &Self::AIR -- cgit v1.2.3