From ee0f55b0efec5a7d6c5018a9111dbfcb5da871b1 Mon Sep 17 00:00:00 2001 From: Rane <60792108+Elijahrane@users.noreply.github.com> Date: Sun, 30 Oct 2022 14:58:36 -0400 Subject: [PATCH] Fix HidesHair (#12219) --- Content.Server/Clothing/ClothingSystem.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } } }