From 75bb75539bbe84964be0f3303dc8473d135c4a4a Mon Sep 17 00:00:00 2001 From: WS01 <151183296+Tuchila-Adi-Bogdan@users.noreply.github.com> Date: Fri, 12 Dec 2025 14:10:43 +0200 Subject: [PATCH] =?utf8?q?Changed=20PullingSystem=20to=20use=20MobStateCha?= =?utf8?q?ngedEvent=20instead=20of=20UpdateMo=E2=80=A6=20(#41835)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Changed PullingSystem to use MobStateChangedEvent instead of UpdateMobStateEvent --- Content.Shared/Movement/Pulling/Systems/PullingSystem.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.52.0