From: osjarw <62134478+osjarw@users.noreply.github.com> Date: Sat, 13 Apr 2024 01:46:00 +0000 (+0300) Subject: Fixed magboot activation distance (#26912) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0a1ce9dd437f162a59c826904241bf15ad6f2838;p=space-station-14.git Fixed magboot activation distance (#26912) --- diff --git a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactMagnetTriggerSystem.cs b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactMagnetTriggerSystem.cs index 92a586547d..c6f56a2750 100644 --- a/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactMagnetTriggerSystem.cs +++ b/Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactMagnetTriggerSystem.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using Content.Server.Salvage; using Content.Server.Xenoarchaeology.XenoArtifacts.Triggers.Components; using Content.Shared.Clothing; @@ -42,7 +42,7 @@ public sealed class ArtifactMagnetTriggerSystem : EntitySystem if (!magXform.Coordinates.TryDistance(EntityManager, xform.Coordinates, out var distance)) continue; - if (distance > trigger.Range) + if (distance > trigger.MagbootRange) continue; _toActivate.Add(artifactUid);