aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_interact.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-05-10 06:22:08 +0330
committermat <git@matdoes.dev>2025-05-10 06:22:08 +0330
commite1d3b902ba08170e4ee82c53f216445f57fbc47e (patch)
treee383f7bb54edf654016a5c370786e6cb67ed28c4 /azalea-protocol/src/packets/game/s_interact.rs
parente9b3128103d203ad4902a40124e4d22a012c196a (diff)
downloadazalea-drasl-e1d3b902ba08170e4ee82c53f216445f57fbc47e.tar.xz
add StartUseItemEvent and improve code related to interactions
Diffstat (limited to 'azalea-protocol/src/packets/game/s_interact.rs')
-rw-r--r--azalea-protocol/src/packets/game/s_interact.rs3
1 files changed, 2 insertions, 1 deletions
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,
}