summaryrefslogtreecommitdiff
path: root/server/protocol/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-05-30 15:55:14 +0200
committermetamuffin <metamuffin@disroot.org>2025-05-30 15:55:14 +0200
commit46a74dbf8231bd4bd5a905f20273bc737fad6787 (patch)
tree12c92c812c2c324bd432f3960be8912a5fedce98 /server/protocol/src/lib.rs
parent17c5cfee80090726ef9500b3a0c259145348878a (diff)
downloadhurrycurry-46a74dbf8231bd4bd5a905f20273bc737fad6787.tar
hurrycurry-46a74dbf8231bd4bd5a905f20273bc737fad6787.tar.bz2
hurrycurry-46a74dbf8231bd4bd5a905f20273bc737fad6787.tar.zst
fix optional pos attribute in interact packet that broke test-client
Diffstat (limited to 'server/protocol/src/lib.rs')
-rw-r--r--server/protocol/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs
index 24e547f6..7c815254 100644
--- a/server/protocol/src/lib.rs
+++ b/server/protocol/src/lib.rs
@@ -131,7 +131,7 @@ pub enum PacketS {
Interact {
player: PlayerID,
hand: Hand,
- #[serde(deserialize_with = "deser_ivec2_opt")]
+ #[serde(deserialize_with = "deser_ivec2_opt", default)]
#[bincode(with_serde)]
pos: Option<IVec2>,
},