From 216c0278ce0f3204c27f694b04ebf2c603700bd9 Mon Sep 17 00:00:00 2001 From: Sh1ntra Date: Sat, 15 Jun 2024 14:58:37 +0300 Subject: [PATCH] fix new PhysicsSystem --- Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs b/Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs index 983fb987d63..e82ed5a556d 100644 --- a/Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs +++ b/Content.Shared/Corvax/Physics/FrictionRemoverSystem.cs @@ -1,3 +1,5 @@ +using Content.Shared.EntityList; +using Content.Shared.Tiles; using Robust.Shared.Physics; using Robust.Shared.Physics.Components; using Robust.Shared.Physics.Systems; @@ -19,6 +21,9 @@ public override void Initialize() private void RemoveDampening(EntityUid uid, PhysicsComponent component, PhysicsSleepEvent args) { + if (EntityManager.TryGetComponent(uid, out ProtectedGridComponent? protectedGridComp)) + return; + _physics.SetAngularDamping(component, 0, false); _physics.SetLinearDamping(component, 0); }