Remove superseded machine linking code (#18244)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System.Linq;
|
||||
using Content.Server.Construction;
|
||||
using Content.Server.MachineLinking.Components;
|
||||
using Content.Server.Paper;
|
||||
using Content.Server.Power.Components;
|
||||
using Content.Server.Research.Systems;
|
||||
@@ -9,6 +8,7 @@ using Content.Server.Xenoarchaeology.Equipment.Components;
|
||||
using Content.Server.Xenoarchaeology.XenoArtifacts;
|
||||
using Content.Server.Xenoarchaeology.XenoArtifacts.Events;
|
||||
using Content.Shared.Audio;
|
||||
using Content.Shared.DeviceLinking;
|
||||
using Content.Shared.DeviceLinking.Events;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Research.Components;
|
||||
@@ -153,14 +153,14 @@ public sealed class ArtifactAnalyzerSystem : EntitySystem
|
||||
|
||||
private void OnMapInit(EntityUid uid, ArtifactAnalyzerComponent component, MapInitEvent args)
|
||||
{
|
||||
if (!TryComp<SignalReceiverComponent>(uid, out var receiver))
|
||||
if (!TryComp<DeviceLinkSinkComponent>(uid, out var sink))
|
||||
return;
|
||||
|
||||
foreach (var port in receiver.Inputs.Values.SelectMany(ports => ports))
|
||||
foreach (var source in sink.LinkedSources)
|
||||
{
|
||||
if (!TryComp<AnalysisConsoleComponent>(port.Uid, out var analysis))
|
||||
if (!TryComp<AnalysisConsoleComponent>(source, out var analysis))
|
||||
continue;
|
||||
component.Console = port.Uid;
|
||||
component.Console = source;
|
||||
analysis.AnalyzerEntity = uid;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user