From b3a498bf224a1ef0bd720813847d5a877f5189e7 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Tue, 20 Dec 2022 13:16:07 -0500 Subject: [PATCH] fix gravity shutdown exception (#13102) --- Content.Shared/Gravity/SharedGravitySystem.Shake.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Shared/Gravity/SharedGravitySystem.Shake.cs b/Content.Shared/Gravity/SharedGravitySystem.Shake.cs index 84be4ebdba..f264698cd9 100644 --- a/Content.Shared/Gravity/SharedGravitySystem.Shake.cs +++ b/Content.Shared/Gravity/SharedGravitySystem.Shake.cs @@ -45,6 +45,9 @@ public abstract partial class SharedGravitySystem public void StartGridShake(EntityUid uid, GravityComponent? gravity = null) { + if (Terminating(uid)) + return; + if (!Resolve(uid, ref gravity, false)) return;