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; }