From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Sun, 25 Feb 2024 03:00:28 +0000 (+0100) Subject: Prevent clients from setting their species to whatever they want (#25535) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=e1cce9d8424215a778523c53dfbd8d36a69305f5;p=space-station-14.git Prevent clients from setting their species to whatever they want (#25535) Prevent epic hack --- 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);