From: WS01 <151183296+Tuchila-Adi-Bogdan@users.noreply.github.com> Date: Fri, 12 Dec 2025 12:10:43 +0000 (+0200) Subject: Changed PullingSystem to use MobStateChangedEvent instead of UpdateMo… (#41835) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=75bb75539bbe84964be0f3303dc8473d135c4a4a;p=space-station-14.git Changed PullingSystem to use MobStateChangedEvent instead of UpdateMo… (#41835) Changed PullingSystem to use MobStateChangedEvent instead of UpdateMobStateEvent --- diff --git a/Content.Shared/Movement/Pulling/Systems/PullingSystem.cs b/Content.Shared/Movement/Pulling/Systems/PullingSystem.cs index 01a65f852a..0fcdf7ebed 100644 --- a/Content.Shared/Movement/Pulling/Systems/PullingSystem.cs +++ b/Content.Shared/Movement/Pulling/Systems/PullingSystem.cs @@ -70,7 +70,7 @@ public sealed class PullingSystem : EntitySystem SubscribeLocalEvent(OnStopBeingPulledAlert); SubscribeLocalEvent(OnGetInteractingEntities); - SubscribeLocalEvent(OnStateChanged, after: [typeof(MobThresholdSystem)]); + SubscribeLocalEvent(OnStateChanged, after: [typeof(MobThresholdSystem)]); SubscribeLocalEvent(OnAfterState); SubscribeLocalEvent(OnPullerContainerInsert); SubscribeLocalEvent(OnPullerUnpaused); @@ -139,12 +139,12 @@ public sealed class PullingSystem : EntitySystem } } - private void OnStateChanged(EntityUid uid, PullerComponent component, ref UpdateMobStateEvent args) + private void OnStateChanged(EntityUid uid, PullerComponent component, ref MobStateChangedEvent args) { if (component.Pulling == null) return; - if (TryComp(component.Pulling, out var comp) && (args.State == MobState.Critical || args.State == MobState.Dead)) + if (TryComp(component.Pulling, out var comp) && (args.NewMobState == MobState.Critical || args.NewMobState == MobState.Dead)) { TryStopPull(component.Pulling.Value, comp); }