Prioritize anchor before insert (#8936)

This commit is contained in:
themias
2022-06-19 07:15:15 -04:00
committed by GitHub
parent 36894ef2e8
commit 59de27fcf4

View File

@@ -1,5 +1,6 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Content.Shared.Construction.Components; using Content.Shared.Construction.Components;
using Content.Shared.Containers.ItemSlots;
using Content.Shared.Interaction; using Content.Shared.Interaction;
using Content.Shared.Pulling.Components; using Content.Shared.Pulling.Components;
using Content.Shared.Tools.Components; using Content.Shared.Tools.Components;
@@ -12,7 +13,8 @@ public abstract class SharedAnchorableSystem : EntitySystem
{ {
base.Initialize(); base.Initialize();
SubscribeLocalEvent<AnchorableComponent, InteractUsingEvent>(OnInteractUsing, after: new[] { typeof(SharedConstructionSystem) }); SubscribeLocalEvent<AnchorableComponent, InteractUsingEvent>(OnInteractUsing,
before: new[] { typeof(ItemSlotsSystem) }, after: new[] { typeof(SharedConstructionSystem) });
} }
private void OnInteractUsing(EntityUid uid, AnchorableComponent anchorable, InteractUsingEvent args) private void OnInteractUsing(EntityUid uid, AnchorableComponent anchorable, InteractUsingEvent args)