]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix shuttle loading error (#22767)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Wed, 20 Dec 2023 06:24:26 +0000 (01:24 -0500)
committerGitHub <noreply@github.com>
Wed, 20 Dec 2023 06:24:26 +0000 (23:24 -0700)
Content.Server/GameTicking/Rules/PiratesRuleSystem.cs
Content.Server/Shuttles/Systems/EmergencyShuttleSystem.cs
Resources/Maps/Shuttles/emergency_transit.yml

index 885bf9cc126043113738154420d8b35c584a03b5..eb22ba9ead6db9ac30223b8eba3bd7e4b95efaa9 100644 (file)
@@ -196,6 +196,7 @@ public sealed class PiratesRuleSystem : GameRuleSystem<PiratesRuleComponent>
             var gridId = _map.LoadGrid(GameTicker.DefaultMap, map, new MapLoadOptions
             {
                 Offset = aabb.Center + new Vector2(a, a),
+                LoadMap = false,
             });
 
             if (!gridId.HasValue)
index 0a764a876ff787b35b447db4b36bfe807596a503..eb205cae63381a7c681599a3cf06148eeca2fa3e 100644 (file)
@@ -409,7 +409,10 @@ public sealed partial class EmergencyShuttleSystem : EntitySystem
         }
 
         var mapId = _mapManager.CreateMap();
-        var grid = _map.LoadGrid(mapId, component.Map.ToString());
+        var grid = _map.LoadGrid(mapId, component.Map.ToString(),  new MapLoadOptions()
+        {
+            LoadMap = false,
+        });
         var map = _mapManager.GetMapEntityId(mapId);
 
         if (!Exists(map))
@@ -469,7 +472,9 @@ public sealed partial class EmergencyShuttleSystem : EntitySystem
         var shuttle = _map.LoadGrid(map.MapId, shuttlePath.ToString(), new MapLoadOptions()
         {
             // Should be far enough... right? I'm too lazy to bounds check CentCom rn.
-            Offset = new Vector2(500f + centcomm.ShuttleIndex, 0f)
+            Offset = new Vector2(500f + centcomm.ShuttleIndex, 0f),
+            // fun fact: if you just fucking yeet centcomm into nullspace anytime you try to spawn the shuttle, then any distance is far enough. so lets not do that
+            LoadMap = false,
         });
 
         if (shuttle == null)
index 7a9af437c7ce7adf3e49a5ba5c4734eed6b6daa2..b6347cd8791987f9b4ce7cc68c5f384745eec98d 100644 (file)
@@ -23,7 +23,7 @@ entities:
     - name: NT Evac Transit
       type: MetaData
     - pos: -4.3957214,6.3308363
-      parent: 161
+      parent: invalid
       type: Transform
     - chunks:
         0,-2:
@@ -430,18 +430,6 @@ entities:
       type: GridAtmosphere
     - type: GasTileOverlay
     - type: GridPathfinding
-  - uid: 161
-    components:
-    - name: map 20
-      type: MetaData
-    - type: Transform
-    - type: Map
-    - type: PhysicsMap
-    - type: GridTree
-    - type: MovedGrids
-    - type: Broadphase
-    - type: OccluderTree
-    - type: LoadedMap
 - proto: AirAlarm
   entities:
   - uid: 3