diff --git a/src/login/login.rs b/src/login/login.rs index 1683977..c6d818f 100644 --- a/src/login/login.rs +++ b/src/login/login.rs @@ -230,6 +230,10 @@ mod test { at_ship: false, }) } + + async fn save_user(&mut self, user: &UserAccountEntity) -> Result<(), GatewayError> { + Ok(()) + } }; let mut server = LoginServerState::new(TestData {}, "127.0.0.1".parse().unwrap()); diff --git a/src/ship/ship.rs b/src/ship/ship.rs index 7a098fe..d27c10f 100644 --- a/src/ship/ship.rs +++ b/src/ship/ship.rs @@ -494,7 +494,8 @@ impl ServerState for ShipServerState { handler::quest::load_quest(id, questmenuselect, &self.quests, &mut self.clients, &self.client_location, &mut self.rooms)? }, RecvShipPacket::MenuDetail(_menudetail) => { - unreachable!(); + //unreachable!(); + Box::new(Vec::new().into_iter()) }, RecvShipPacket::RoomPasswordReq(room_password_req) => { if room_password_req.password == self.rooms[room_password_req.item as usize].as_ref()