From 81c7e3ee33994d85afac45b554e1beab04c6d6f9 Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 12 Feb 2023 14:32:12 +0000 Subject: [PATCH] rebase sillyness --- src/ship/items/tasks.rs | 4 ++-- src/ship/packet/handler/message.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ship/items/tasks.rs b/src/ship/items/tasks.rs index 67fd179..2bde925 100644 --- a/src/ship/items/tasks.rs +++ b/src/ship/items/tasks.rs @@ -509,8 +509,8 @@ where }) } -pub async fn floor_item_limit_reached<'a, EG> ( - item_state: &'a mut ItemState, +pub fn floor_item_limit_reached<'a, EG> ( + item_state: &'a ItemState, entity_gateway: &'a mut EG, character: &'a CharacterEntity, item_id: &'a ClientItemId, diff --git a/src/ship/packet/handler/message.rs b/src/ship/packet/handler/message.rs index c219303..f380d14 100644 --- a/src/ship/packet/handler/message.rs +++ b/src/ship/packet/handler/message.rs @@ -519,9 +519,9 @@ where clients.with(id, |client| { let mut entity_gateway = entity_gateway.clone(); - let mut item_state = item_state.clone(); + let item_state = item_state.clone(); Box::pin(async move { - floor_item_limit_reached(&mut item_state, &mut entity_gateway, &client.character, &ClientItemId(floor_item_limit_delete.item_id), map_area).await + floor_item_limit_reached(&item_state, &mut entity_gateway, &client.character, &ClientItemId(floor_item_limit_delete.item_id), map_area).await })}).await??; Ok(Vec::new()) -} \ No newline at end of file +}