Skip to content

Commit

Permalink
Prevent clients from setting their species to whatever they want (spa…
Browse files Browse the repository at this point in the history
…ce-wizards#25535) (SerbiaStrong-220#783)

Prevent epic hack

Co-authored-by: Debug <49997488+DebugOk@users.noreply.github.com>
  • Loading branch information
Werzet and DebugOk authored Feb 29, 2024
1 parent df1e721 commit cc34ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Preferences/HumanoidCharacterProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public void EnsureValid(string[] sponsorMarkings)
{
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);
Expand Down

0 comments on commit cc34ae8

Please sign in to comment.