From 4594700d19916061b2aa755530cb6acd70c69d71 Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Sat, 20 Apr 2024 01:54:44 -0400 Subject: [PATCH] Fixed debug assert while getting network state in ClothingSystem (#27153) --- Content.Shared/Clothing/EntitySystems/ClothingSystem.cs | 4 ---- 1 file changed, 4 deletions(-) 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) -- 2.52.0