|
|
@ -397,7 +397,7 @@ impl<EG: EntityGateway> ShipServerState<EG> { |
|
|
|
fn room_name_request(&mut self, id: ClientId) -> Box<dyn Iterator<Item = (ClientId, SendShipPacket)>> {
|
|
|
|
let area = self.client_location.get_area_by_user(id);
|
|
|
|
let room_state = self.rooms[area.id()].as_ref().unwrap();
|
|
|
|
Box::new(vec![(id, SendShipPacket::RoomNameResponse(RoomNameResponse {name: String::from_utf16_lossy(&room_state.name)}))].into_iter())
|
|
|
|
Box::new(vec![(id, SendShipPacket::RoomNameResponse(RoomNameResponse {name: room_state.name.clone()}))].into_iter())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|