Fix doafters always being red for the client (#20187)
This commit is contained in:
@@ -207,7 +207,6 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
|||||||
var doAfter = new DoAfter(id.Value.Index, args, GameTiming.CurTime);
|
var doAfter = new DoAfter(id.Value.Index, args, GameTiming.CurTime);
|
||||||
|
|
||||||
// Networking yay
|
// Networking yay
|
||||||
doAfter.NetUserPosition = GetNetCoordinates(doAfter.UserPosition);
|
|
||||||
doAfter.NetInitialItem = GetNetEntity(doAfter.InitialItem);
|
doAfter.NetInitialItem = GetNetEntity(doAfter.InitialItem);
|
||||||
|
|
||||||
// Networking yay
|
// Networking yay
|
||||||
@@ -226,6 +225,8 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
|||||||
doAfter.UserPosition.TryDistance(EntityManager, targetPosition, out doAfter.TargetDistance);
|
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
|
// 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).
|
// (or if there is no item there we need to keep it free).
|
||||||
if (args.NeedHand && args.BreakOnHandChange)
|
if (args.NeedHand && args.BreakOnHandChange)
|
||||||
|
|||||||
Reference in New Issue
Block a user