diff options
author | metamuffin <metamuffin@disroot.org> | 2025-05-30 15:55:14 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-05-30 15:55:14 +0200 |
commit | 46a74dbf8231bd4bd5a905f20273bc737fad6787 (patch) | |
tree | 12c92c812c2c324bd432f3960be8912a5fedce98 /server | |
parent | 17c5cfee80090726ef9500b3a0c259145348878a (diff) | |
download | hurrycurry-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')
-rw-r--r-- | server/protocol/src/lib.rs | 2 |
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>, }, |