Fixed debug assert while getting network state in ClothingSystem (#27153)

This commit is contained in:
Tayrtahn
2024-04-20 01:54:44 -04:00
committed by GitHub
parent fc7839eeba
commit 4594700d19

View 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)