From: kosticia Date: Sat, 3 May 2025 14:29:52 +0000 (+0300) Subject: make node scanner don't show interface if scanned entity not a artefact (#37146) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f3bc40eaa7f1bd06e805061a4bffa261dcbfb491;p=space-station-14.git make node scanner don't show interface if scanned entity not a artefact (#37146) * a * a * Revert "a" This reverts commit 2b9ba4ea67a9395d30b7ab37c8065f627f1a961a. --- diff --git a/Content.Shared/Xenoarchaeology/Equipment/NodeScannerSystem.cs b/Content.Shared/Xenoarchaeology/Equipment/NodeScannerSystem.cs index 81802d6b6e..977f04886b 100644 --- a/Content.Shared/Xenoarchaeology/Equipment/NodeScannerSystem.cs +++ b/Content.Shared/Xenoarchaeology/Equipment/NodeScannerSystem.cs @@ -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(target)) return; Entity unlockingEnt = TryComp(target, out var unlockingComponent)