Fix random clothing slots being able to hide character's nose and hair (#26708)
Fix bug and formatting
This commit is contained in:
@@ -91,7 +91,7 @@ public abstract class ClothingSystem : EntitySystem
|
|||||||
|
|
||||||
private void ToggleVisualLayer(EntityUid equipee, HumanoidVisualLayers layer, string tag)
|
private void ToggleVisualLayer(EntityUid equipee, HumanoidVisualLayers layer, string tag)
|
||||||
{
|
{
|
||||||
InventorySystem.InventorySlotEnumerator enumerator = _invSystem.GetSlotEnumerator(equipee);
|
InventorySystem.InventorySlotEnumerator enumerator = _invSystem.GetSlotEnumerator(equipee, SlotFlags.HEAD ^ SlotFlags.MASK);
|
||||||
bool shouldLayerShow = true;
|
bool shouldLayerShow = true;
|
||||||
|
|
||||||
while (enumerator.NextItem(out EntityUid item))
|
while (enumerator.NextItem(out EntityUid item))
|
||||||
|
|||||||
Reference in New Issue
Block a user