From e759f91ba1c7333ee4b60cbfd4da076190af643d Mon Sep 17 00:00:00 2001 From: Vigers Ray Date: Sat, 28 Dec 2024 05:50:35 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=BF=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Shared/Preferences/HumanoidCharacterProfile.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Content.Shared/Preferences/HumanoidCharacterProfile.cs b/Content.Shared/Preferences/HumanoidCharacterProfile.cs index ab11b8ca3a..1ea2b93da6 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -64,8 +64,6 @@ namespace Content.Shared.Preferences [DataField] private Dictionary _loadouts = new(); - private ISharedSponsorsManager? _sponsorsMgr; // Sunrise-Sponsors - [DataField] public string Name { get; set; } = "John Doe"; @@ -573,11 +571,12 @@ namespace Content.Shared.Preferences } // Sunrise-Start + IoCManager.Instance!.TryResolveType(out var sponsors); var maxDescLength = MaxDescLength; - if (_sponsorsMgr != null) + if (sponsors != null) { - maxDescLength = _sponsorsMgr.GetSizeFlavor(session.UserId); - if (_sponsorsMgr.IsAllowedFlavor(session.UserId)) + maxDescLength = sponsors.GetSizeFlavor(session.UserId); + if (sponsors.IsAllowedFlavor(session.UserId)) { FlavorText = string.Empty; }