Add arrivals (#14755)
* Arrivals * More arrivals and shitty uhh preload * cvar * a * clockin + maps * shitter prevention * Placement * a * cvar for tests and dev * weh
This commit is contained in:
@@ -63,7 +63,10 @@ namespace Content.Server.Shuttles.Systems
|
||||
|
||||
private void OnDestinationMessage(EntityUid uid, ShuttleConsoleComponent component, ShuttleConsoleDestinationMessage args)
|
||||
{
|
||||
if (!TryComp<FTLDestinationComponent>(args.Destination, out var dest)) return;
|
||||
if (!TryComp<FTLDestinationComponent>(args.Destination, out var dest))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!dest.Enabled) return;
|
||||
|
||||
@@ -77,10 +80,16 @@ namespace Content.Server.Shuttles.Systems
|
||||
RaiseLocalEvent(entity.Value, ref getShuttleEv);
|
||||
entity = getShuttleEv.Console;
|
||||
|
||||
if (entity == null || dest.Whitelist?.IsValid(entity.Value, EntityManager) == false) return;
|
||||
if (entity == null || dest.Whitelist?.IsValid(entity.Value, EntityManager) == false)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!TryComp<TransformComponent>(entity, out var xform) ||
|
||||
!TryComp<ShuttleComponent>(xform.GridUid, out var shuttle)) return;
|
||||
!TryComp<ShuttleComponent>(xform.GridUid, out var shuttle))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (HasComp<FTLComponent>(xform.GridUid))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user