From 90c3923119a0dd6b191cace90b6b4ad335fad53a Mon Sep 17 00:00:00 2001 From: Joshua Yanovski Date: Sun, 11 Apr 2021 15:52:55 +0200 Subject: [PATCH] Fix players being able to pick up other players. --- server/src/events/inventory_manip.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/events/inventory_manip.rs b/server/src/events/inventory_manip.rs index 1aa60ff15f..bfabcda89d 100644 --- a/server/src/events/inventory_manip.rs +++ b/server/src/events/inventory_manip.rs @@ -149,7 +149,7 @@ pub fn handle_inventory(server: &mut Server, entity: EcsEntity, manip: comp::Inv Err(returned_item) => { // Inventory was full, so we need to put back the item (note that we know there // was no old item component for this entity). - item_storage.insert(entity, returned_item).expect( + item_storage.insert(item_entity, returned_item).expect( "We know item_entity exists since we just successfully removed its Item \ component.", );