diff --git a/Content.Server/Disposal/Unit/EntitySystems/DisposableSystem.cs b/Content.Server/Disposal/Unit/EntitySystems/DisposableSystem.cs index 38e3923803..ddc1b754a0 100644 --- a/Content.Server/Disposal/Unit/EntitySystems/DisposableSystem.cs +++ b/Content.Server/Disposal/Unit/EntitySystems/DisposableSystem.cs @@ -136,9 +136,9 @@ public void ExitDisposals(EntityUid uid, DisposalHolderComponent? holder = null, { _xformSystem.AttachToGridOrMap(entity, xform); - if (holder.PreviousDirection != Direction.Invalid && _xformQuery.TryGetComponent(xform.ParentUid, out var parentXform)) + if (holder.PreviousDirection != Direction.Invalid && gridUid != null && _xformQuery.TryGetComponent(gridUid, out var parentXform)) { - var direction = holder.PreviousDirection.ToAngle(); + var direction = holder.CurrentDirection.ToAngle(); direction += _xformSystem.GetWorldRotation(parentXform); _throwing.TryThrow(entity, direction.ToWorldVec() * 3f, 10f); }