еще приколы
This commit is contained in:
@@ -42,7 +42,7 @@ public sealed class HumanoidAppearanceSystem : SharedHumanoidAppearanceSystem
|
||||
component.BaseLayers.Clear();
|
||||
|
||||
// add default species layers
|
||||
var bodyTypeProto = _prototypeManager.Index<BodyTypePrototype>(component.BodyType);
|
||||
var bodyTypeProto = _prototypeManager.Index(component.BodyType);
|
||||
foreach (var (key, id) in bodyTypeProto.Sprites)
|
||||
{
|
||||
oldLayers.Remove(key);
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Content.Client.Options.UI.Tabs
|
||||
var id = 0;
|
||||
foreach (var layout in Enum.GetValues(typeof(ScreenType)))
|
||||
{
|
||||
var name = Loc.GetString($"ui-options-hud-type-{layout!.ToString()!.ToLower()}");
|
||||
var name = layout.ToString()!;
|
||||
HudLayoutOption.AddItem(name, id);
|
||||
if (name == hudLayout)
|
||||
{
|
||||
|
||||
@@ -947,7 +947,7 @@ namespace Content.Client.Preferences.UI
|
||||
}
|
||||
|
||||
// If current body type is not valid.
|
||||
if (!_bodyTypesList.Select(proto => proto.ID).Contains(Profile.BodyType))
|
||||
if (!_bodyTypesList.Select(proto => proto.ID).Contains(Profile.BodyType.Id))
|
||||
{
|
||||
// Then replace it with a first valid body type.
|
||||
SetBodyType(_bodyTypesList.First().ID);
|
||||
|
||||
Reference in New Issue
Block a user