From: DrSmugleaf Date: Fri, 15 Sep 2023 00:21:59 +0000 (-0700) Subject: Fix doafters always being red for the client (#20187) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=89337f33bc8fd9b5f555bd1b6db87bffec4cb8d3;p=space-station-14.git Fix doafters always being red for the client (#20187) --- diff --git a/Content.Shared/DoAfter/SharedDoAfterSystem.cs b/Content.Shared/DoAfter/SharedDoAfterSystem.cs index 472db8cfd6..815310f7f1 100644 --- a/Content.Shared/DoAfter/SharedDoAfterSystem.cs +++ b/Content.Shared/DoAfter/SharedDoAfterSystem.cs @@ -207,7 +207,6 @@ public abstract partial class SharedDoAfterSystem : EntitySystem var doAfter = new DoAfter(id.Value.Index, args, GameTiming.CurTime); // Networking yay - doAfter.NetUserPosition = GetNetCoordinates(doAfter.UserPosition); doAfter.NetInitialItem = GetNetEntity(doAfter.InitialItem); // Networking yay @@ -226,6 +225,8 @@ public abstract partial class SharedDoAfterSystem : EntitySystem doAfter.UserPosition.TryDistance(EntityManager, targetPosition, out doAfter.TargetDistance); } + doAfter.NetUserPosition = GetNetCoordinates(doAfter.UserPosition); + // For this we need to stay on the same hand slot and need the same item in that hand slot // (or if there is no item there we need to keep it free). if (args.NeedHand && args.BreakOnHandChange)