diff --git a/src/ship/packet/handler/room.rs b/src/ship/packet/handler/room.rs index 19a9296..f2ff793 100644 --- a/src/ship/packet/handler/room.rs +++ b/src/ship/packet/handler/room.rs @@ -107,13 +107,11 @@ pub fn join_room(id: ClientId, return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("You must be at least level 20 \nto join Hard rooms.".into())))].into_iter())) } }, + _ => {}, }; let original_area = client_location.get_area(id).unwrap(); let original_neighbors = client_location.get_client_neighbors(id).unwrap(); - // let room = rooms.get(pkt.item as usize) - // .ok_or_else(|| ShipError::InvalidRoom(pkt.item))?.as_ref() - // .ok_or_else(|| ShipError::InvalidRoom(pkt.item))?; if room.bursting { return Ok(Box::new(vec![(id, SendShipPacket::SmallDialog(SmallDialog::new("player is bursting\nplease wait".into())))].into_iter())) }