]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed debug assert while getting network state in ClothingSystem (#27153)
authorTayrtahn <tayrtahn@gmail.com>
Sat, 20 Apr 2024 05:54:44 +0000 (01:54 -0400)
committerGitHub <noreply@github.com>
Sat, 20 Apr 2024 05:54:44 +0000 (15:54 +1000)
Content.Shared/Clothing/EntitySystems/ClothingSystem.cs

index 427d83cc3cee6244baa02ca0ad05c1e1addffe93..f035453d0d83010fe56c35ded10a1dcbd236b464 100644 (file)
@@ -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)