diff --git a/Content.Server/Clothing/ClothingSystem.cs b/Content.Server/Clothing/ClothingSystem.cs index 288c3f7ac5..93223838f6 100644 --- a/Content.Server/Clothing/ClothingSystem.cs +++ b/Content.Server/Clothing/ClothingSystem.cs @@ -20,8 +20,7 @@ public sealed class ServerClothingSystem : ClothingSystem if (args.Slot == "head" && _tagSystem.HasTag(args.Equipment, "HidesHair")) { - _humanoidSystem.SetLayersVisibility(args.Equipee, - HumanoidVisualLayersExtension.Sublayers(HumanoidVisualLayers.Head), false); + _humanoidSystem.ToggleHiddenLayer(args.Equipee, HumanoidVisualLayers.Hair); } } @@ -34,8 +33,7 @@ public sealed class ServerClothingSystem : ClothingSystem if (args.Slot == "head" && _tagSystem.HasTag(args.Equipment, "HidesHair")) { - _humanoidSystem.SetLayersVisibility(args.Equipee, - HumanoidVisualLayersExtension.Sublayers(HumanoidVisualLayers.Head), true); + _humanoidSystem.ToggleHiddenLayer(args.Equipee, HumanoidVisualLayers.Hair); } } }