Prevent epic hack Co-authored-by: Debug <49997488+DebugOk@users.noreply.github.com>
This commit is contained in:
@@ -504,7 +504,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);
|
||||||
|
|||||||
Reference in New Issue
Block a user