From 2a3cc3d35ac0dbf6bab8de88d46066fed142fda9 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 30 Aug 2021 12:33:42 -0400 Subject: [PATCH] No longer send collect inventory event if interactable sprite kind cannot be found. --- common/src/states/utils.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/common/src/states/utils.rs b/common/src/states/utils.rs index 58f71791ec..ec6b9aaa0c 100644 --- a/common/src/states/utils.rs +++ b/common/src/states/utils.rs @@ -695,7 +695,7 @@ pub fn handle_manipulate_loadout( .copied() .and_then(|b| b.get_sprite()); - // Checks if position has a collectible sprite as wella s what sprite is at the + // Checks if position has a collectible sprite as well as what sprite is at the // position let sprite_interact = sprite_at_pos.and_then(Option::::from); @@ -719,11 +719,6 @@ pub fn handle_manipulate_loadout( timer: Duration::default(), stage_section: StageSection::Buildup, }) - } else { - // Otherwise send server event immediately - update - .server_events - .push_front(ServerEvent::InventoryManip(data.entity, inv_action.into())); } } },