diff options
| author | mat <git@matdoes.dev> | 2025-12-15 11:02:33 +0300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-12-15 12:08:30 +0400 |
| commit | 281a810c860a67e8e7957aaec876ea608602831c (patch) | |
| tree | c467175238cff236e6c8c381cb729cd48a2c4039 /azalea-block | |
| parent | 0569ffd2d85585eb69de9068ab3f62e768bce4e7 (diff) | |
| download | azalea-drasl-281a810c860a67e8e7957aaec876ea608602831c.tar.xz | |
change ClientboundAddEntity::data from a u32 to i32
hi shay :3
Diffstat (limited to 'azalea-block')
| -rw-r--r-- | azalea-block/src/block_state.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/azalea-block/src/block_state.rs b/azalea-block/src/block_state.rs index f7ef9006..08baad2f 100644 --- a/azalea-block/src/block_state.rs +++ b/azalea-block/src/block_state.rs @@ -85,6 +85,14 @@ impl TryFrom<u32> for BlockState { } } } +impl TryFrom<i32> for BlockState { + type Error = (); + + fn try_from(state_id: i32) -> Result<Self, Self::Error> { + Self::try_from(state_id as u32) + } +} + impl TryFrom<u16> for BlockState { type Error = (); |
