Skip to content

Commit

Permalink
мдаа
Browse files Browse the repository at this point in the history
  • Loading branch information
lzk228 authored Dec 26, 2024
1 parent 5e70863 commit 4860ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Telephone/TelephoneSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ private void OnTelephoneMessageReceived(Entity<TelephoneComponent> entity, ref T
// If speaker entity has TTS, the telephone will speak with the same voice
if(TryComp<TTSComponent>(args.MessageSource, out var ttsSpeaker))
{
_entManager.EnsureComponent<TTSComponent>(entity, out var ttsTelephone);
EntityManager.EnsureComponent<TTSComponent>(entity, out var ttsTelephone);
ttsTelephone.VoicePrototypeId = ttsSpeaker.VoicePrototypeId;
}
else // Remove TTS if the speaker has no TTS
{
entityManager.RemoveComponent<TTSComponent>(entity);
EntityManager.RemoveComponent<TTSComponent>(entity);
}
// Corvax-TTS-End
_chat.TrySendInGameICMessage(entity, args.Message, volume, ChatTransmitRange.GhostRangeLimit, nameOverride: name, checkRadioPrefix: false);
Expand Down

0 comments on commit 4860ea8

Please sign in to comment.