]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Don't disable collision on dead mobs, fixes an issue with pulling (#30532)
authorMr. 27 <45323883+Dutch-VanDerLinde@users.noreply.github.com>
Wed, 7 Aug 2024 22:59:04 +0000 (18:59 -0400)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2024 22:59:04 +0000 (18:59 -0400)
Update MobStateSystem.Subscribers.cs

Content.Shared/Mobs/Systems/MobStateSystem.Subscribers.cs

index 9ee8a064e540e4ec25964821bd286b6cadb8c416..f99bd43febccbeedd7c18a272725e48d9add8538 100644 (file)
@@ -80,11 +80,6 @@ public partial class MobStateSystem
             case MobState.Dead:
                 RemComp<CollisionWakeComponent>(target);
                 _standing.Stand(target);
-                if (!_standing.IsDown(target) && TryComp<PhysicsComponent>(target, out var physics))
-                {
-                    _physics.SetCanCollide(target, true, body: physics);
-                }
-
                 break;
             case MobState.Invalid:
                 //unused
@@ -115,12 +110,6 @@ public partial class MobStateSystem
             case MobState.Dead:
                 EnsureComp<CollisionWakeComponent>(target);
                 _standing.Down(target);
-
-                if (_standing.IsDown(target) && TryComp<PhysicsComponent>(target, out var physics))
-                {
-                    _physics.SetCanCollide(target, false, body: physics);
-                }
-
                 _appearance.SetData(target, MobStateVisuals.State, MobState.Dead);
                 break;
             case MobState.Invalid: