0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 22:30:44 -05:00

made AddLoot() async Task so it can be awaited

This commit is contained in:
Dev 2024-04-11 16:20:15 +01:00
parent 558d5a3f6e
commit 6041bea712

View File

@ -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)