]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Thieving beacons automatically set coordinates when unfolded. (#42520)
authorDDDragoni <38265528+DDeegan@users.noreply.github.com>
Mon, 19 Jan 2026 09:02:22 +0000 (01:02 -0800)
committerGitHub <noreply@github.com>
Mon, 19 Jan 2026 09:02:22 +0000 (09:02 +0000)
Thieving beacons set coordinates when unfolded

Content.Shared/Thief/Systems/ThiefBeaconSystem.cs

index bff33cb7811b566716a54712fb09100ca5c1de51..9cf68148737a84ac7fce6527713a1883d85a5ddc 100644 (file)
@@ -57,6 +57,15 @@ public sealed class ThiefBeaconSystem : EntitySystem
     {
         if (args.IsFolded)
             ClearCoordinate(beacon, args.User);
+
+        if (!args.IsFolded) // Set the beacon's coordinates automatically when its unfolded
+        {
+            if (args.User == null)
+                return;
+            var mind = _mind.GetMind(args.User.Value);
+            if (mind != null)
+                SetCoordinate(beacon, mind.Value, args.User);
+        }
     }
 
     private void OnExamined(Entity<ThiefBeaconComponent> beacon, ref ExaminedEvent args)