From 46a74dbf8231bd4bd5a905f20273bc737fad6787 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 30 May 2025 15:55:14 +0200 Subject: fix optional pos attribute in interact packet that broke test-client --- server/protocol/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/protocol/src/lib.rs') 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, }, -- cgit v1.2.3-70-g09d2