Fix doafters always being red for the client (#20187)

This commit is contained in:
DrSmugleaf
2023-09-14 17:21:59 -07:00
committed by GitHub
parent 9a85bcc142
commit 89337f33bc

View File

@@ -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)