Makes humanoid appearance component networked. (#13009)
Fixes https://github.com/space-wizards/space-station-14/issues/12248
This commit is contained in:
@@ -553,7 +553,7 @@ namespace Content.Client.Preferences.UI
|
||||
#endregion FlavorText
|
||||
|
||||
#region Dummy
|
||||
var species = Profile?.Species ?? SharedHumanoidSystem.DefaultSpecies;
|
||||
var species = Profile?.Species ?? SharedHumanoidAppearanceSystem.DefaultSpecies;
|
||||
var dollProto = _prototypeManager.Index<SpeciesPrototype>(species).DollPrototype;
|
||||
|
||||
if (_previewDummy != null)
|
||||
@@ -693,7 +693,7 @@ namespace Content.Client.Preferences.UI
|
||||
|
||||
private void RebuildSpriteView()
|
||||
{
|
||||
var species = Profile?.Species ?? SharedHumanoidSystem.DefaultSpecies;
|
||||
var species = Profile?.Species ?? SharedHumanoidAppearanceSystem.DefaultSpecies;
|
||||
var dollProto = _prototypeManager.Index<SpeciesPrototype>(species).DollPrototype;
|
||||
|
||||
if (_previewDummy != null)
|
||||
@@ -1032,7 +1032,7 @@ namespace Content.Client.Preferences.UI
|
||||
if (Profile is null)
|
||||
return;
|
||||
|
||||
EntitySystem.Get<HumanoidSystem>().LoadProfile(_previewDummy!.Value, Profile);
|
||||
EntitySystem.Get<HumanoidAppearanceSystem>().LoadProfile(_previewDummy!.Value, Profile);
|
||||
LobbyCharacterPreviewPanel.GiveDummyJobClothes(_previewDummy!.Value, Profile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user