ConstructionSystem handles InteractUsing before AnchorableSystem. (#8700)

This commit is contained in:
Vera Aguilera Puerto
2022-06-08 09:50:23 +02:00
committed by GitHub
parent a323ba8223
commit 67106dedb9

View File

@@ -1,6 +1,7 @@
using Content.Server.Construction.Components; using Content.Server.Construction.Components;
using Content.Server.DoAfter; using Content.Server.DoAfter;
using Content.Shared.Construction; using Content.Shared.Construction;
using Content.Shared.Construction.EntitySystems;
using Content.Shared.Construction.Steps; using Content.Shared.Construction.Steps;
using Content.Shared.Interaction; using Content.Shared.Interaction;
using Robust.Shared.Containers; using Robust.Shared.Containers;
@@ -27,7 +28,7 @@ namespace Content.Server.Construction
#endregion #endregion
// Event handling. Add your subscriptions here! Just make sure they're all handled by EnqueueEvent. // Event handling. Add your subscriptions here! Just make sure they're all handled by EnqueueEvent.
SubscribeLocalEvent<ConstructionComponent, InteractUsingEvent>(EnqueueEvent); SubscribeLocalEvent<ConstructionComponent, InteractUsingEvent>(EnqueueEvent, new []{typeof(AnchorableSystem)});
} }
/// <summary> /// <summary>