Remove hands component reference (#15197)
This commit is contained in:
@@ -203,7 +203,7 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
||||
// (or if there is no item there we need to keep it free).
|
||||
if (args.NeedHand && args.BreakOnHandChange)
|
||||
{
|
||||
if (!TryComp(args.User, out SharedHandsComponent? handsComponent))
|
||||
if (!TryComp(args.User, out HandsComponent? handsComponent))
|
||||
return false;
|
||||
|
||||
doAfter.InitialHand = handsComponent.ActiveHand?.Name;
|
||||
@@ -211,7 +211,7 @@ public abstract partial class SharedDoAfterSystem : EntitySystem
|
||||
}
|
||||
|
||||
// Inital checks
|
||||
if (ShouldCancel(doAfter, GetEntityQuery<TransformComponent>(), GetEntityQuery<SharedHandsComponent>()))
|
||||
if (ShouldCancel(doAfter, GetEntityQuery<TransformComponent>(), GetEntityQuery<HandsComponent>()))
|
||||
return false;
|
||||
|
||||
if (args.AttemptFrequency == AttemptFrequency.StartAndEnd && !TryAttemptEvent(doAfter))
|
||||
|
||||
Reference in New Issue
Block a user