From 9776dd7f11085da56ba9caf0c461c5f631307438 Mon Sep 17 00:00:00 2001 From: Nair Sark <26607408+NairSark@users.noreply.github.com> Date: Wed, 28 Feb 2024 00:09:39 +0500 Subject: [PATCH] Prevent clients from setting their species to whatever they want (#25535) (#134) Prevent epic hack Co-authored-by: Debug <49997488+DebugOk@users.noreply.github.com> --- Content.Shared/Preferences/HumanoidCharacterProfile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/Preferences/HumanoidCharacterProfile.cs b/Content.Shared/Preferences/HumanoidCharacterProfile.cs index 4857c00d4b..590317fb0c 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -504,7 +504,7 @@ namespace Content.Shared.Preferences { var prototypeManager = IoCManager.Resolve(); - if (!prototypeManager.TryIndex(Species, out var speciesPrototype)) + if (!prototypeManager.TryIndex(Species, out var speciesPrototype) || speciesPrototype.RoundStart == false) { Species = SharedHumanoidAppearanceSystem.DefaultSpecies; speciesPrototype = prototypeManager.Index(Species);