From 59de27fcf4a77e666bd74fd19a7966e3cbf1dea5 Mon Sep 17 00:00:00 2001 From: themias <89101928+themias@users.noreply.github.com> Date: Sun, 19 Jun 2022 07:15:15 -0400 Subject: [PATCH] Prioritize anchor before insert (#8936) --- .../Construction/EntitySystems/SharedAnchorableSystem.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Construction/EntitySystems/SharedAnchorableSystem.cs b/Content.Shared/Construction/EntitySystems/SharedAnchorableSystem.cs index 7d8c32a647..b0e9329fd4 100644 --- a/Content.Shared/Construction/EntitySystems/SharedAnchorableSystem.cs +++ b/Content.Shared/Construction/EntitySystems/SharedAnchorableSystem.cs @@ -1,5 +1,6 @@ using System.Threading.Tasks; using Content.Shared.Construction.Components; +using Content.Shared.Containers.ItemSlots; using Content.Shared.Interaction; using Content.Shared.Pulling.Components; using Content.Shared.Tools.Components; @@ -12,7 +13,8 @@ public abstract class SharedAnchorableSystem : EntitySystem { base.Initialize(); - SubscribeLocalEvent(OnInteractUsing, after: new[] { typeof(SharedConstructionSystem) }); + SubscribeLocalEvent(OnInteractUsing, + before: new[] { typeof(ItemSlotsSystem) }, after: new[] { typeof(SharedConstructionSystem) }); } private void OnInteractUsing(EntityUid uid, AnchorableComponent anchorable, InteractUsingEvent args)