Skip to content

Commit

Permalink
Update LanguageSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Sep 10, 2024
1 parent 5417738 commit 1f51cdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Content.Server/Language/LanguageSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ public override void Initialize()

private void OnUniversalLanguageInit(EntityUid uid, UniversalLanguageSpeakerComponent component, MapInitEvent args)
{
EnsureComp<LanguageKnowledgeComponent>(uid);
AddLanguage(uid, UniversalPrototype);
}

private void OnUniversalLanguageShutdown(EntityUid uid, UniversalLanguageSpeakerComponent component, ComponentShutdown args)
{
if (!HasComp<LanguageKnowledgeComponent>(uid))
return;

RemoveLanguage(uid, UniversalPrototype);
}

Expand Down

0 comments on commit 1f51cdf

Please sign in to comment.