diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-07-07 05:58:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-07 05:58:44 +0000 |
| commit | 31e5629ce1c8267802bbcb9d03b60a299d474e59 (patch) | |
| tree | 5968b48af9b0c30149e908b043966c41dda0a61d /azalea-block/src | |
| parent | 27edd4f578e7b64fdaacefa26f691e2148707a8c (diff) | |
| parent | 37d854c799236650da3deb025d8b32693531a27f (diff) | |
| download | azalea-drasl-31e5629ce1c8267802bbcb9d03b60a299d474e59.tar.xz | |
Merge branch 'main' into 1.19.1
Diffstat (limited to 'azalea-block/src')
| -rw-r--r-- | azalea-block/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/azalea-block/src/lib.rs b/azalea-block/src/lib.rs index a6de1e92..f07b1bce 100644 --- a/azalea-block/src/lib.rs +++ b/azalea-block/src/lib.rs @@ -7,8 +7,10 @@ pub use blocks::*; use std::mem; impl BlockState { - /// Transmutes a u32 to a block state. UB if the value is not a valid block - /// state. + /// Transmutes a u32 to a block state. + /// + /// # Safety + /// The `state_id` should be a valid block state. #[inline] pub unsafe fn from_u32_unsafe(state_id: u32) -> Self { mem::transmute::<u32, BlockState>(state_id) |
