Фиксы, лобби не работает

This commit is contained in:
Aviu00
2024-01-14 07:19:32 +03:00
parent 5a039bb558
commit e5bacfa76c
2 changed files with 2 additions and 2 deletions

View File

@@ -80,6 +80,6 @@ public sealed partial class HumanoidProfileEditor
return;
_ttsSys.StopAllStreams();
_ttsMgr.RequestTTS(_previewDummy.Value, _random.Pick(_sampleText), Profile.Voice);
_ttsMgr.RequestTTS(_previewDummy.Value, IoCManager.Resolve<IRobustRandom>().Pick(_sampleText), Profile.Voice);
}
}

View File

@@ -48,7 +48,7 @@ public sealed partial class TTSSystem : EntitySystem
var soundData = await GenerateTTS(ev.Uid, ev.Text, protoVoice.Speaker);
if (soundData != null)
RaiseNetworkEvent(new PlayTTSEvent(ev.Uid, soundData), Filter.SinglePlayer(session));
RaiseNetworkEvent(new PlayTTSEvent(GetNetEntity(ev.Uid), soundData), Filter.SinglePlayer(session));
}
private async void OnEntitySpoke(EntityUid uid, TTSComponent component, EntitySpokeEvent args)