Fix cargo (again) (#14800)

This commit is contained in:
metalgearsloth
2023-03-23 19:21:12 +11:00
committed by GitHub
parent c2a17452e7
commit 92dff4a630

View 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;