Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rxup committed Feb 17, 2024
1 parent 0cc0de0 commit 7a0a978
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Content.Client/Corvax/TTS/TTSSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Content.Shared.Chat;
using Content.Shared.Corvax.CCCVars;
using Content.Shared.Corvax.TTS;
using Content.Shared.GameTicking;
using Robust.Client.Audio;
using Robust.Client.ResourceManagement;
using Robust.Shared.Audio;
Expand Down Expand Up @@ -79,7 +80,7 @@ private void OnPlayTTS(PlayTTSEvent ev)
_contentRoot.AddOrUpdateFile(filePath, ev.Data);

var audioResource = new AudioResource();
audioResource.Load(IoCManager.Instance!, Prefix / filePath);
audioResource.Load(IoCManager.Instance!, _prefix / filePath);

var audioParams = AudioParams.Default
.WithVolume(AdjustVolume(ev.IsWhisper))
Expand All @@ -88,7 +89,7 @@ private void OnPlayTTS(PlayTTSEvent ev)
if (ev.SourceUid != null)
{
var sourceUid = GetEntity(ev.SourceUid.Value);
if(sourceUid.IsValid)
if(sourceUid.IsValid())
_audio.PlayEntity(audioResource.AudioStream, sourceUid, audioParams);
}
else
Expand Down
1 change: 1 addition & 0 deletions Content.Client/Entry/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public override void Init()
_prototypeManager.RegisterIgnore("npcConversationTree");
_prototypeManager.RegisterIgnore("shipwreckDestination");
_prototypeManager.RegisterIgnore("shipwreckFaction");
_prototypeManager.RegisterIgnore("loadout");
// End Backmen.

_componentFactory.GenerateNetIds();
Expand Down

0 comments on commit 7a0a978

Please sign in to comment.