From 6041bea712fd10f442c9576e902227e54011e7dd Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 11 Apr 2024 16:20:15 +0100 Subject: [PATCH] made `AddLoot()` `async Task` so it can be awaited --- project/Aki.Custom/Airdrops/Utils/ItemFactoryUtil.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/Aki.Custom/Airdrops/Utils/ItemFactoryUtil.cs b/project/Aki.Custom/Airdrops/Utils/ItemFactoryUtil.cs index 1ea01da..031413f 100644 --- a/project/Aki.Custom/Airdrops/Utils/ItemFactoryUtil.cs +++ b/project/Aki.Custom/Airdrops/Utils/ItemFactoryUtil.cs @@ -8,6 +8,7 @@ using Newtonsoft.Json; using System.Collections.Generic; using Aki.Custom.Airdrops.Models; using System.Linq; +using System.Threading.Tasks; namespace Aki.Custom.Airdrops.Utils { @@ -34,7 +35,7 @@ namespace Aki.Custom.Airdrops.Utils } } - public async void AddLoot(LootableContainer container, AirdropLootResultModel lootToAdd) + public async Task AddLoot(LootableContainer container, AirdropLootResultModel lootToAdd) { Item actualItem; foreach (var item in lootToAdd.Loot)