Prevent clients from setting their species to whatever they want (#25535)
Prevent epic hack
This commit is contained in:
@@ -375,7 +375,7 @@ namespace Content.Shared.Preferences
|
||||
{
|
||||
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;
|
||||
speciesPrototype = prototypeManager.Index<SpeciesPrototype>(Species);
|
||||
|
||||
Reference in New Issue
Block a user