]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix bluespace anomaly (#13968)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Mon, 6 Feb 2023 21:11:20 +0000 (16:11 -0500)
committerGitHub <noreply@github.com>
Mon, 6 Feb 2023 21:11:20 +0000 (22:11 +0100)
Content.Shared/Anomaly/Effects/BluespaceAnomalySystem.cs
Resources/Prototypes/Entities/Structures/Specific/anomalies.yml

index 920cc26e52aba052293889e81fced3430e82a3c1..dd521aeca074df8cb6db243ea5e812b4b46df125 100644 (file)
@@ -3,7 +3,6 @@ using Content.Shared.Anomaly.Components;
 using Content.Shared.Anomaly.Effects.Components;
 using Content.Shared.Mobs.Components;
 using Content.Shared.Teleportation.Components;
-using Robust.Shared.Map;
 using Robust.Shared.Random;
 
 namespace Content.Shared.Anomaly.Effects;
@@ -32,17 +31,17 @@ public sealed class BluespaceAnomalySystem : EntitySystem
         allEnts.Add(uid);
 
         var xformQuery = GetEntityQuery<TransformComponent>();
-        var coords = new List<EntityCoordinates>();
+        var coords = new List<Vector2>();
         foreach (var ent in allEnts)
         {
             if (xformQuery.TryGetComponent(ent, out var xf))
-                coords.Add(xf.Coordinates);
+                coords.Add(xf.MapPosition.Position);
         }
 
         _random.Shuffle(coords);
         for (var i = 0; i < allEnts.Count; i++)
         {
-            _xform.SetCoordinates(allEnts[i], coords[i]);
+            _xform.SetWorldPosition(allEnts[i], coords[i], xformQuery);
         }
     }
 
index 1dfeefff36ae721bd2e806789d3c4e165d17555d..f3d40d0d138a47cec9d83559f352cd8427803ec2 100644 (file)
@@ -18,7 +18,7 @@
     sound:
       path: /Audio/Ambience/anomaly_drone.ogg
   - type: Transform
-    anchored: true
+    anchored: false
   - type: Physics
     bodyType: Static
   - type: Fixtures