|
|
@ -83,8 +83,6 @@ where |
|
|
|
z: request_item.z,
|
|
|
|
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 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)?;
|
|
|
@ -147,7 +145,6 @@ where |
|
|
|
|
|
|
|
let remove_item = builder::message::remove_item_from_floor(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) {
|
|
|
|
Ok(_) => {
|
|
|
|
Ok(Box::new(Vec::new().into_iter()
|
|
|
|