make node scanner don't show interface if scanned entity not a artefact (#37146)

* a

* a

* Revert "a"

This reverts commit 2b9ba4ea67a9395d30b7ab37c8065f627f1a961a.
This commit is contained in:
kosticia
2025-05-03 17:29:52 +03:00
committed by GitHub
parent dc2a7483c7
commit f3bc40eaa7

View File

@@ -45,7 +45,7 @@ public sealed class NodeScannerSystem : EntitySystem
private void OnBeforeRangedInteract(EntityUid uid, NodeScannerComponent component, BeforeRangedInteractEvent args)
{
if (args.Handled || !args.CanReach || args.Target is not { } target)
if (args.Handled || !args.CanReach || args.Target is not { } target || !HasComp<XenoArtifactComponent>(target))
return;
Entity<XenoArtifactUnlockingComponent?> unlockingEnt = TryComp<XenoArtifactUnlockingComponent>(target, out var unlockingComponent)