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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user