Fix do_after net initial item (#20363)
This commit is contained in:
@@ -206,9 +206,6 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
|||||||
id = new DoAfterId(args.User, comp.NextId++);
|
id = new DoAfterId(args.User, comp.NextId++);
|
||||||
var doAfter = new DoAfter(id.Value.Index, args, GameTiming.CurTime);
|
var doAfter = new DoAfter(id.Value.Index, args, GameTiming.CurTime);
|
||||||
|
|
||||||
// Networking yay
|
|
||||||
doAfter.NetInitialItem = GetNetEntity(doAfter.InitialItem);
|
|
||||||
|
|
||||||
// Networking yay
|
// Networking yay
|
||||||
args.NetTarget = GetNetEntity(args.Target);
|
args.NetTarget = GetNetEntity(args.Target);
|
||||||
args.NetUsed = GetNetEntity(args.Used);
|
args.NetUsed = GetNetEntity(args.Used);
|
||||||
@@ -238,6 +235,8 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
|||||||
doAfter.InitialItem = handsComponent.ActiveHandEntity;
|
doAfter.InitialItem = handsComponent.ActiveHandEntity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
doAfter.NetInitialItem = GetNetEntity(doAfter.InitialItem);
|
||||||
|
|
||||||
// Initial checks
|
// Initial checks
|
||||||
if (ShouldCancel(doAfter, GetEntityQuery<TransformComponent>(), GetEntityQuery<HandsComponent>()))
|
if (ShouldCancel(doAfter, GetEntityQuery<TransformComponent>(), GetEntityQuery<HandsComponent>()))
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user