Skip to content

Commit

Permalink
Use EnsureComp
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepyyapril committed Jan 4, 2025
1 parent 87c7979 commit 7098710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Server/Station/Systems/StationSpawningSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public EntityUid SpawnPlayerMob(
_humanoidSystem.LoadProfile(entity.Value, profile);
_metaSystem.SetEntityName(entity.Value, profile.Name);
if (profile.FlavorText != "" && _configurationManager.GetCVar(CCVars.FlavorText))
AddComp<DetailExaminableComponent>(entity.Value).Content = profile.FlavorText;
EnsureComp<DetailExaminableComponent>(entity.Value).Content = profile.FlavorText;
}

DoJobSpecials(job, entity.Value);
Expand Down

0 comments on commit 7098710

Please sign in to comment.