Browse Source

remove commented out code

pbs
jake 5 years ago
parent
commit
c3f474e34d
  1. 3
      src/ship/packet/handler/direct_message.rs

3
src/ship/packet/handler/direct_message.rs

@ -83,8 +83,6 @@ where
z: request_item.z, z: request_item.z,
item: item_drop_type, item: item_drop_type,
}; };
//let floor_item_instance = FloorItemInstance::from_item_drop(entity_gateway, item_drop)?;
//let activated_item = item_manager.activate_floor_item(floor_item_instance);
let client = clients.get_mut(&area_client.client).ok_or(ShipError::ClientNotFound(area_client.client))?; let client = clients.get_mut(&area_client.client).ok_or(ShipError::ClientNotFound(area_client.client))?;
let floor_item = item_manager.drop_item_on_local_floor(entity_gateway, &client.character, item_drop).unwrap(); // TODO: unwrap let floor_item = item_manager.drop_item_on_local_floor(entity_gateway, &client.character, item_drop).unwrap(); // TODO: unwrap
let item_drop_msg = builder::message::item_drop(request_item.client, request_item.target, &floor_item)?; let item_drop_msg = builder::message::item_drop(request_item.client, request_item.target, &floor_item)?;
@ -147,7 +145,6 @@ where
let remove_item = builder::message::remove_item_from_floor(area_client, &item)?; let remove_item = builder::message::remove_item_from_floor(area_client, &item)?;
let create_item = builder::message::create_item(area_client, &item)?; let create_item = builder::message::create_item(area_client, &item)?;
//match client.inventory.add_item(item.item) {
match item_manager.move_item_from_floor_to_inventory(entity_gateway, &mut client, item) { match item_manager.move_item_from_floor_to_inventory(entity_gateway, &mut client, item) {
Ok(_) => { Ok(_) => {
Ok(Box::new(Vec::new().into_iter() Ok(Box::new(Vec::new().into_iter()

Loading…
Cancel
Save