From e1cce9d8424215a778523c53dfbd8d36a69305f5 Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Sun, 25 Feb 2024 04:00:28 +0100 Subject: [PATCH] Prevent clients from setting their species to whatever they want (#25535) Prevent epic hack --- 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 22c37dcfe9..92c5b083dc 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -375,7 +375,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); -- 2.52.0