]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
make node scanner don't show interface if scanned entity not a artefact (#37146)
authorkosticia <kosticia46@gmail.com>
Sat, 3 May 2025 14:29:52 +0000 (17:29 +0300)
committerGitHub <noreply@github.com>
Sat, 3 May 2025 14:29:52 +0000 (10:29 -0400)
* a

* a

* Revert "a"

This reverts commit 2b9ba4ea67a9395d30b7ab37c8065f627f1a961a.

Content.Shared/Xenoarchaeology/Equipment/NodeScannerSystem.cs

index 81802d6b6ed0706140d930cafa3ea37bd7831359..977f04886b75687980461b3ad371fd352b1398ab 100644 (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)