From 89337f33bc8fd9b5f555bd1b6db87bffec4cb8d3 Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Thu, 14 Sep 2023 17:21:59 -0700 Subject: [PATCH] Fix doafters always being red for the client (#20187) --- Content.Shared/DoAfter/SharedDoAfterSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)