From: Tayrtahn Date: Sat, 20 Apr 2024 05:54:44 +0000 (-0400) Subject: Fixed debug assert while getting network state in ClothingSystem (#27153) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=4594700d19916061b2aa755530cb6acd70c69d71;p=space-station-14.git Fixed debug assert while getting network state in ClothingSystem (#27153) --- diff --git a/Content.Shared/Clothing/EntitySystems/ClothingSystem.cs b/Content.Shared/Clothing/EntitySystems/ClothingSystem.cs index 427d83cc3c..f035453d0d 100644 --- a/Content.Shared/Clothing/EntitySystems/ClothingSystem.cs +++ b/Content.Shared/Clothing/EntitySystems/ClothingSystem.cs @@ -131,10 +131,6 @@ public abstract class ClothingSystem : EntitySystem private void OnGetState(EntityUid uid, ClothingComponent component, ref ComponentGetState args) { args.State = new ClothingComponentState(component.EquippedPrefix); - if (component.InSlot != null && _containerSys.TryGetContainingContainer(uid, out var container)) - { - CheckEquipmentForLayerHide(uid, container.Owner); - } } private void OnHandleState(EntityUid uid, ClothingComponent component, ref ComponentHandleState args)