From 13cbcc920a2756376e0005046b4b82c68eb9c9da Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 9 Jul 2024 14:52:54 +0200 Subject: implement auto release on active (and passive) recipes --- server/protocol/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/protocol/src/lib.rs') diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index 36a496a0..9c8d6bee 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -62,8 +62,7 @@ pub enum PacketS { boosting: bool, }, Interact { - pos: IVec2, - edge: bool, + pos: Option, }, Collide { player: PlayerID, @@ -165,7 +164,7 @@ pub enum PacketC { ReplayStart, } -#[derive(Debug, Clone, Serialize, Deserialize, Copy)] +#[derive(Debug, Clone, Serialize, Deserialize, Copy, PartialEq, Eq, Hash)] #[serde(rename_all = "snake_case")] pub enum ItemLocation { Tile(IVec2), -- cgit v1.2.3-70-g09d2