Skip to content

Commit f3bc40e

Browse files
author
kosticia
authored
make node scanner don't show interface if scanned entity not a artefact (#37146)
* a * a * Revert "a" This reverts commit 2b9ba4ea67a9395d30b7ab37c8065f627f1a961a.
1 parent dc2a748 commit f3bc40e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Content.Shared/Xenoarchaeology/Equipment/NodeScannerSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public override void Update(float frameTime)
4545

4646
private void OnBeforeRangedInteract(EntityUid uid, NodeScannerComponent component, BeforeRangedInteractEvent args)
4747
{
48-
if (args.Handled || !args.CanReach || args.Target is not { } target)
48+
if (args.Handled || !args.CanReach || args.Target is not { } target || !HasComp<XenoArtifactComponent>(target))
4949
return;
5050

5151
Entity<XenoArtifactUnlockingComponent?> unlockingEnt = TryComp<XenoArtifactUnlockingComponent>(target, out var unlockingComponent)

0 commit comments

Comments
 (0)