Fix async usage in InteractionSystem

Fixes #2524
This commit is contained in:
Víctor Aguilera Puerto
2020-11-10 22:47:43 +01:00
parent e567e9fec1
commit 44ee2b7ab6
3 changed files with 6 additions and 10 deletions

View File

@@ -432,7 +432,7 @@ namespace Content.Server.GameObjects.Components.GUI
/// Message that tells us to equip or unequip items from the inventory slots
/// </summary>
/// <param name="msg"></param>
private void HandleInventoryMessage(ClientInventoryMessage msg)
private async void HandleInventoryMessage(ClientInventoryMessage msg)
{
switch (msg.Updatetype)
{
@@ -463,7 +463,7 @@ namespace Content.Server.GameObjects.Components.GUI
{
if (activeHand != null)
{
_ = interactionSystem.Interaction(Owner, activeHand.Owner, itemContainedInSlot.Owner,
await interactionSystem.Interaction(Owner, activeHand.Owner, itemContainedInSlot.Owner,
new EntityCoordinates());
}
else if (Unequip(msg.Inventoryslot))