From d4ad2e473a398319a891df7b5b64493aa7708e20 Mon Sep 17 00:00:00 2001 From: "Mr. 27" <45323883+Dutch-VanDerLinde@users.noreply.github.com> Date: Wed, 7 Aug 2024 18:59:04 -0400 Subject: [PATCH] Don't disable collision on dead mobs, fixes an issue with pulling (#30532) Update MobStateSystem.Subscribers.cs --- .../Mobs/Systems/MobStateSystem.Subscribers.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Content.Shared/Mobs/Systems/MobStateSystem.Subscribers.cs b/Content.Shared/Mobs/Systems/MobStateSystem.Subscribers.cs index 9ee8a064e5..f99bd43feb 100644 --- a/Content.Shared/Mobs/Systems/MobStateSystem.Subscribers.cs +++ b/Content.Shared/Mobs/Systems/MobStateSystem.Subscribers.cs @@ -80,11 +80,6 @@ public partial class MobStateSystem case MobState.Dead: RemComp(target); _standing.Stand(target); - if (!_standing.IsDown(target) && TryComp(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(target); _standing.Down(target); - - if (_standing.IsDown(target) && TryComp(target, out var physics)) - { - _physics.SetCanCollide(target, false, body: physics); - } - _appearance.SetData(target, MobStateVisuals.State, MobState.Dead); break; case MobState.Invalid: