comment bruh

This commit is contained in:
Dmitry
2026-01-29 02:25:30 +07:00
parent c05780c5d3
commit b7ea1a4028
3 changed files with 4 additions and 4 deletions
+2
View File
@@ -35,6 +35,7 @@ public static class ClientPackaging
"/m"
}
};
// Corvax-Secrets-Start
if (UseSecrets)
{
await ProcessHelpers.RunCheck(new ProcessStartInfo
@@ -53,6 +54,7 @@ public static class ClientPackaging
}
});
}
// Corvax-Secrets-End
if (logBuild)
{
@@ -377,8 +377,7 @@ namespace Content.Server.Preferences.Managers
var sponsorPrototypes = _sponsors != null && _sponsors.TryGetServerPrototypes(session.UserId, out var prototypes) ? prototypes.ToArray() : []; // Corvax-Sponsors
return new PlayerPreferences(prefs.Characters.Select(p =>
{
return new KeyValuePair<int, HumanoidCharacterProfile>(p.Key, p.Value.Validated(session, collection));
return new KeyValuePair<int, ICharacterProfile>(p.Key, p.Value.Validated(session, collection, sponsorPrototypes));
return new KeyValuePair<int, HumanoidCharacterProfile>(p.Key, p.Value.Validated(session, collection, sponsorPrototypes));// Corvax-Sponsors
}), prefs.SelectedCharacterIndex, prefs.AdminOOCColor, prefs.ConstructionFavorites);
}
@@ -721,7 +721,6 @@ namespace Content.Shared.Preferences
return result;
}
public HumanoidCharacterProfile Validated(ICommonSession session, IDependencyCollection collection)
// Corvax-TTS-Start
// SHOULD BE NOT PUBLIC, BUT....
public static bool CanHaveVoice(TTSVoicePrototype voice, Sex sex)
@@ -730,7 +729,7 @@ namespace Content.Shared.Preferences
}
// Corvax-TTS-End
public ICharacterProfile Validated(ICommonSession session, IDependencyCollection collection, string[] sponsorPrototypes)
public HumanoidCharacterProfile Validated(ICommonSession session, IDependencyCollection collection, string[] sponsorPrototypes)// Corvax-Sponsors
{
var profile = new HumanoidCharacterProfile(this);
profile.EnsureValid(session, collection, sponsorPrototypes);