Skip to content

Commit

Permalink
let it go
Browse files Browse the repository at this point in the history
  • Loading branch information
Errant-4 committed Nov 26, 2024
1 parent dcc6bd0 commit ddfb523
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Content.Shared/Roles/SharedRoleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,9 @@ public bool MindRemoveRole<T>(Entity<MindComponent?> mind) where T : IComponent
// to make sure the reference gets removed even if the mind role entity was deleted by outside code
private void OnComponentShutdown(Entity<MindRoleComponent> ent, ref ComponentShutdown args)
{
//Tests spawn mind role entities without an associated mind when they spawn every possible entity
//TODO: Just ensure that the tests don't spawn unassociated mind role entities
if (ent.Comp.Mind.Comp is null)
{
Log.Warning($"Mind Role entity {ToPrettyString(ent.Owner)} has no reference to a Mind entity");
return;
}

ent.Comp.Mind.Comp.MindRoles.Remove(ent.Owner);
}
Expand Down

0 comments on commit ddfb523

Please sign in to comment.