Фиксы, лобби не работает
This commit is contained in:
@@ -80,6 +80,6 @@ public sealed partial class HumanoidProfileEditor
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
_ttsSys.StopAllStreams();
|
_ttsSys.StopAllStreams();
|
||||||
_ttsMgr.RequestTTS(_previewDummy.Value, _random.Pick(_sampleText), Profile.Voice);
|
_ttsMgr.RequestTTS(_previewDummy.Value, IoCManager.Resolve<IRobustRandom>().Pick(_sampleText), Profile.Voice);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ public sealed partial class TTSSystem : EntitySystem
|
|||||||
|
|
||||||
var soundData = await GenerateTTS(ev.Uid, ev.Text, protoVoice.Speaker);
|
var soundData = await GenerateTTS(ev.Uid, ev.Text, protoVoice.Speaker);
|
||||||
if (soundData != null)
|
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)
|
private async void OnEntitySpoke(EntityUid uid, TTSComponent component, EntitySpokeEvent args)
|
||||||
|
|||||||
Reference in New Issue
Block a user