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

@@ -568,7 +568,7 @@ namespace Content.Server.GameObjects.Components.GUI
}
}
public override void HandleNetworkMessage(ComponentMessage message, INetChannel channel, ICommonSession? session = null)
public override async void HandleNetworkMessage(ComponentMessage message, INetChannel channel, ICommonSession? session = null)
{
base.HandleNetworkMessage(message, channel, session);
@@ -609,7 +609,7 @@ namespace Content.Server.GameObjects.Components.GUI
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
if (used != null)
{
_ = interactionSystem.Interaction(Owner, used, hand.Entity,
await interactionSystem.Interaction(Owner, used, hand.Entity,
EntityCoordinates.Invalid);
}
else