Prevent clients from setting their species to whatever they want (#25535)

Prevent epic hack
This commit is contained in:
Debug
2024-02-25 04:00:28 +01:00
committed by GitHub
parent c52820a4b6
commit e1cce9d842

View File

@@ -375,7 +375,7 @@ namespace Content.Shared.Preferences
{ {
var prototypeManager = IoCManager.Resolve<IPrototypeManager>(); var prototypeManager = IoCManager.Resolve<IPrototypeManager>();
if (!prototypeManager.TryIndex<SpeciesPrototype>(Species, out var speciesPrototype)) if (!prototypeManager.TryIndex<SpeciesPrototype>(Species, out var speciesPrototype) || speciesPrototype.RoundStart == false)
{ {
Species = SharedHumanoidAppearanceSystem.DefaultSpecies; Species = SharedHumanoidAppearanceSystem.DefaultSpecies;
speciesPrototype = prototypeManager.Index<SpeciesPrototype>(Species); speciesPrototype = prototypeManager.Index<SpeciesPrototype>(Species);