diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-09 14:52:54 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-09 14:52:54 +0200 |
commit | 13cbcc920a2756376e0005046b4b82c68eb9c9da (patch) | |
tree | babcd00e7fedc9a2fd8001d3435d7c1268aeb414 /server/protocol/src | |
parent | 52f7b5833510b0e55d4942d99f1c8046643ee31d (diff) | |
download | hurrycurry-13cbcc920a2756376e0005046b4b82c68eb9c9da.tar hurrycurry-13cbcc920a2756376e0005046b4b82c68eb9c9da.tar.bz2 hurrycurry-13cbcc920a2756376e0005046b4b82c68eb9c9da.tar.zst |
implement auto release on active (and passive) recipes
Diffstat (limited to 'server/protocol/src')
-rw-r--r-- | server/protocol/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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<IVec2>, }, 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), |