Skip to content

Commit

Permalink
Prevent clients from setting their species to whatever they want (#25…
Browse files Browse the repository at this point in the history
…535)

Prevent epic hack
  • Loading branch information
DebugOk committed Feb 25, 2024
1 parent 34b7de1 commit 7646796
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 @@ -375,7 +375,7 @@ public void EnsureValid()
{
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 7646796

Please sign in to comment.