@@ -95,6 +95,8 @@ public abstract class ClothingSystem : EntitySystem
|
||||
while (enumerator.NextItem(out EntityUid item))
|
||||
{
|
||||
if (TryComp(item, out HideLayerClothingComponent? comp))
|
||||
{
|
||||
if (comp.Slots.Contains(layer))
|
||||
{
|
||||
//Checks for mask toggling. TODO: Make a generic system for this
|
||||
if (comp.HideOnToggle && TryComp(item, out MaskComponent? mask) && TryComp(item, out ClothingComponent? clothing))
|
||||
@@ -112,6 +114,7 @@ public abstract class ClothingSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
_humanoidSystem.SetLayerVisibility(equipee, layer, shouldLayerShow);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user