]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed magboot activation distance (#26912)
authorosjarw <62134478+osjarw@users.noreply.github.com>
Sat, 13 Apr 2024 01:46:00 +0000 (04:46 +0300)
committerGitHub <noreply@github.com>
Sat, 13 Apr 2024 01:46:00 +0000 (21:46 -0400)
Content.Server/Xenoarchaeology/XenoArtifacts/Triggers/Systems/ArtifactMagnetTriggerSystem.cs

index 92a586547dd6ff15b0b07deb0ca445420615f811..c6f56a2750820dee0a00fd6043439042b1979351 100644 (file)
@@ -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);