From e1d3b902ba08170e4ee82c53f216445f57fbc47e Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 10 May 2025 06:22:08 +0330 Subject: add StartUseItemEvent and improve code related to interactions --- azalea-protocol/src/packets/game/s_interact.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'azalea-protocol/src/packets/game/s_interact.rs') diff --git a/azalea-protocol/src/packets/game/s_interact.rs b/azalea-protocol/src/packets/game/s_interact.rs index 89fc896f..a3007749 100644 --- a/azalea-protocol/src/packets/game/s_interact.rs +++ b/azalea-protocol/src/packets/game/s_interact.rs @@ -80,8 +80,9 @@ impl AzaleaRead for ActionType { } } -#[derive(AzBuf, Clone, Copy, Debug)] +#[derive(AzBuf, Clone, Copy, Debug, Default)] pub enum InteractionHand { + #[default] MainHand = 0, OffHand = 1, } -- cgit v1.2.3