Browse Source

this changed in libpso

pbs
jake 5 years ago
parent
commit
efba98124c
  1. 2
      src/ship/packet/handler/message.rs
  2. 2
      src/ship/ship.rs

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

@ -25,7 +25,7 @@ pub fn request_exp(id: ClientId,
} }
pub fn player_drop_item<EG>(id: ClientId, pub fn player_drop_item<EG>(id: ClientId,
player_drop_item: &PlayerDropItem2,
player_drop_item: &PlayerDropItem,
entity_gateway: &mut EG, entity_gateway: &mut EG,
client_location: &ClientLocation, client_location: &ClientLocation,
clients: &mut Clients, clients: &mut Clients,

2
src/ship/ship.rs

@ -205,7 +205,7 @@ impl<EG: EntityGateway> ShipServerState<EG> {
GameMessage::RequestExp(request_exp) => { GameMessage::RequestExp(request_exp) => {
handler::message::request_exp(id, request_exp, &self.client_location, &self.rooms) handler::message::request_exp(id, request_exp, &self.client_location, &self.rooms)
}, },
GameMessage::PlayerDropItem2(player_drop_item) => {
GameMessage::PlayerDropItem(player_drop_item) => {
handler::message::player_drop_item(id, player_drop_item, &mut self.entity_gateway, &mut self.client_location, &mut self.clients, &mut self.rooms, &mut self.item_manager).unwrap() handler::message::player_drop_item(id, player_drop_item, &mut self.entity_gateway, &mut self.client_location, &mut self.clients, &mut self.rooms, &mut self.item_manager).unwrap()
}, },
_ => { _ => {

Loading…
Cancel
Save