Fix HidesHair (#12219)

This commit is contained in:
Rane
2022-10-30 14:58:36 -04:00
committed by GitHub
parent 3bab897b1b
commit ee0f55b0ef

View File

@@ -20,8 +20,7 @@ public sealed class ServerClothingSystem : ClothingSystem
if (args.Slot == "head" if (args.Slot == "head"
&& _tagSystem.HasTag(args.Equipment, "HidesHair")) && _tagSystem.HasTag(args.Equipment, "HidesHair"))
{ {
_humanoidSystem.SetLayersVisibility(args.Equipee, _humanoidSystem.ToggleHiddenLayer(args.Equipee, HumanoidVisualLayers.Hair);
HumanoidVisualLayersExtension.Sublayers(HumanoidVisualLayers.Head), false);
} }
} }
@@ -34,8 +33,7 @@ public sealed class ServerClothingSystem : ClothingSystem
if (args.Slot == "head" if (args.Slot == "head"
&& _tagSystem.HasTag(args.Equipment, "HidesHair")) && _tagSystem.HasTag(args.Equipment, "HidesHair"))
{ {
_humanoidSystem.SetLayersVisibility(args.Equipee, _humanoidSystem.ToggleHiddenLayer(args.Equipee, HumanoidVisualLayers.Hair);
HumanoidVisualLayersExtension.Sublayers(HumanoidVisualLayers.Head), true);
} }
} }
} }