]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix cargo (again) (#14800)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 23 Mar 2023 08:21:12 +0000 (19:21 +1100)
committerGitHub <noreply@github.com>
Thu, 23 Mar 2023 08:21:12 +0000 (19:21 +1100)
Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs

index 8b150812fe9f423e2cd6304374f2ab8fe737be70..1aa664c9fb3f92d95b0d3a98dccafd5e3118dad8 100644 (file)
@@ -452,11 +452,11 @@ public sealed partial class CargoSystem
 
     private void OnCargoFTLStarted(EntityUid uid, CargoShuttleComponent component, ref FTLStartedEvent args)
     {
-        var xform = Transform(uid);
         var stationUid = component.Station;
 
         // Called
-        if (xform.MapID != CargoMap ||
+        if (CargoMap == null ||
+            args.FromMapUid != _mapManager.GetMapEntityId(CargoMap.Value) ||
             !TryComp<StationCargoOrderDatabaseComponent>(stationUid, out var orderDatabase))
         {
             return;