No longer send collect inventory event if interactable sprite kind cannot be found.

This commit is contained in:
Sam 2021-08-30 12:33:42 -04:00
parent c66e1b3a56
commit 2a3cc3d35a

View File

@ -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::<SpriteInteractKind>::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()));
}
}
},