Skip to content

Commit

Permalink
further attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
ScarKy0 committed Sep 21, 2024
1 parent 1120ffe commit d033cda
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,11 @@ private void OnAiRemove(Entity<StationAiCoreComponent> ent, ref EntRemovedFromCo

private void OnAiBrainRemoved(Entity<StationAiHeldComponent> ent, ref EntGotRemovedFromContainerMessage args)
{
if(!TryComp(ent.Owner, out ActionsComponent? targetComponent))
return;
targetComponent.Actions.Clear();

Dirty(targetComponent.Owner, targetComponent);
if (TryComp(args.Entity, out ActionsComponent? comp))
{
comp.Actions.Clear();
Dirty(args.Entity, comp);
}
}

private void UpdateAppearance(Entity<StationAiHolderComponent?> entity)
Expand Down

0 comments on commit d033cda

Please sign in to comment.