Skip to content

Commit

Permalink
Update entity languages when adding/removing ULSC
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician committed Oct 7, 2024
1 parent a4a06e1 commit 4aa5bb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Content.Server/Language/LanguageSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public override void Initialize()
SubscribeLocalEvent<LanguageSpeakerComponent, ComponentGetState>(OnGetLanguageState);
SubscribeLocalEvent<UniversalLanguageSpeakerComponent, DetermineEntityLanguagesEvent>(OnDetermineUniversalLanguages);
SubscribeNetworkEvent<LanguagesSetMessage>(OnClientSetLanguage);

SubscribeLocalEvent<UniversalLanguageSpeakerComponent, MapInitEvent>((uid, _, _) => UpdateEntityLanguages(uid));
SubscribeLocalEvent<UniversalLanguageSpeakerComponent, ComponentRemove>((uid, _, _) => UpdateEntityLanguages(uid));
}

#region event handling
Expand Down

0 comments on commit 4aa5bb5

Please sign in to comment.