🎭🎭🎭🎭 (#74)

This commit is contained in:
Valtos
2023-05-17 12:11:10 +07:00
committed by Aviu00
parent a442340572
commit ee653e8963

View File

@@ -238,7 +238,8 @@ namespace Content.Server.Preferences.Managers
{
var maxSlots = _cfg.GetCVar(CCVars.GameMaxCharacterSlots);
var extraSlots = _sponsors.TryGetInfo(userId, out var sponsor) ? sponsor.ExtraSlots : 0;
return maxSlots + extraSlots;
var maxSavedSlots = _cachedPlayerPrefs[userId].Prefs!.Characters.Count;
return Math.Max(maxSlots + extraSlots, maxSavedSlots - 1);
}
/// <summary>