Content update for fixture changes (#5524)

This commit is contained in:
metalgearsloth
2021-12-01 13:05:08 +11:00
committed by GitHub
parent c2f2d27b16
commit 0a843b671f
108 changed files with 1023 additions and 829 deletions

View File

@@ -101,6 +101,9 @@ namespace Content.Server.Shuttles.EntitySystems
private void OnShuttleShutdown(EntityUid uid, ShuttleComponent component, ComponentShutdown args)
{
// None of the below is necessary for any cleanup if we're just deleting.
if (EntityManager.GetComponent<MetaDataComponent>(uid).EntityLifeStage >= EntityLifeStage.Terminating) return;
if (!component.Owner.TryGetComponent(out PhysicsComponent? physicsComponent))
{
return;