Browse Source

remove unneeded warnings

pbs
jake 4 years ago
parent
commit
72141ace2c
  1. 2
      src/ship/items/manager.rs
  2. 2
      src/ship/packet/handler/direct_message.rs

2
src/ship/items/manager.rs

@ -215,7 +215,7 @@ impl ItemManager {
let inventory = self.character_inventory.get_mut(&character.id).unwrap();
inventory.initialize_item_ids(base_inventory_id);
let base_bank_id = ((area_client.local_client.id() as u32) << 21) | 0x20000;
let default_bank = self.character_bank.get_mut(&character.id);//.unwrap().get_mut(&BankName("".to_string()));
let default_bank = self.character_bank.get_mut(&character.id);
match default_bank {
Some(default_bank) => {
default_bank.initialize_item_ids(base_bank_id);

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

@ -82,7 +82,6 @@ where
let client_and_drop = clients_in_area.into_iter()
.filter_map(|area_client| {
room.drop_table.get_drop(&monster.map_area, &monster.monster).map(|item_drop_type| {
warn!("drop is? {:?}", item_drop_type);
(area_client, item_drop_type)
})
});
@ -180,7 +179,6 @@ EG: EntityGateway
let client_and_drop = clients_in_area.into_iter()
.filter_map(|area_client| {
room.drop_table.get_box_drop(&box_object.map, &box_object).map(|item_drop_type| {
warn!("drop is? {:?}", item_drop_type);
(area_client, item_drop_type)
})
});

Loading…
Cancel
Save