From 1ca254c418c5879dcd3f139109d506dc748881e3 Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Tue, 9 Feb 2021 20:07:09 +0100 Subject: [PATCH] Fix ChangeConstructionNodeBehavior.Execute not being async --- .../Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/GameObjects/Components/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs b/Content.Server/GameObjects/Components/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs index 6d5c41cc27..88bcace306 100644 --- a/Content.Server/GameObjects/Components/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs +++ b/Content.Server/GameObjects/Components/Destructible/Thresholds/Behaviors/ChangeConstructionNodeBehavior.cs @@ -18,7 +18,7 @@ namespace Content.Server.GameObjects.Components.Destructible.Thresholds.Behavior serializer.DataField(this, x => x.Node, "node", string.Empty); } - public void Execute(IEntity owner, DestructibleSystem system) + public async void Execute(IEntity owner, DestructibleSystem system) { if (string.IsNullOrEmpty(Node) || !owner.TryGetComponent(out ConstructionComponent? construction)) @@ -26,7 +26,7 @@ namespace Content.Server.GameObjects.Components.Destructible.Thresholds.Behavior return; } - construction.ChangeNode(Node); + await construction.ChangeNode(Node); } } }