@@ -64,7 +64,6 @@ namespace Exiled.API.Features
6464
6565 using PlayerRoles ;
6666 using PlayerRoles . FirstPersonControl ;
67- using PlayerRoles . FirstPersonControl . Thirdperson ;
6867 using PlayerRoles . FirstPersonControl . Thirdperson . Subcontrollers ;
6968 using PlayerRoles . FirstPersonControl . Thirdperson . Subcontrollers . Wearables ;
7069 using PlayerRoles . RoleAssign ;
@@ -874,7 +873,7 @@ public WearableElementType Wearables
874873 WearableElements flags = data . Flags ;
875874 WearableElementType exiledFlags = WearableElementType . None ;
876875
877- if ( flags . HasFlagFast ( WearableElements . Armor ) && data . Payload . Length is 1 )
876+ if ( flags . HasFlag ( WearableElements . Armor ) && data . Payload . Length is 1 )
878877 {
879878 ItemType armor = ( ItemType ) UnsafeUtility . As < byte , sbyte > ( ref data . Payload [ 0 ] ) ;
880879
@@ -899,11 +898,11 @@ public WearableElementType Wearables
899898 WearableSync . PayloadWriter . Reset ( ) ;
900899 Log . Info ( "newWearables" + value ) ;
901900
902- if ( value . HasFlagFast ( WearableElementType . ArmorDefault ) )
901+ if ( value . HasFlag ( WearableElementType . ArmorDefault ) )
903902 {
904- ItemType displayedArmor = value . HasFlagFast ( WearableElementType . ArmorLight ) ? ItemType . ArmorLight :
905- value . HasFlagFast ( WearableElementType . ArmorCombat ) ? ItemType . ArmorCombat :
906- value . HasFlagFast ( WearableElementType . ArmorHeavy ) ? ItemType . ArmorHeavy :
903+ ItemType displayedArmor = value . HasFlag ( WearableElementType . ArmorLight ) ? ItemType . ArmorLight :
904+ value . HasFlag ( WearableElementType . ArmorCombat ) ? ItemType . ArmorCombat :
905+ value . HasFlag ( WearableElementType . ArmorHeavy ) ? ItemType . ArmorHeavy :
907906 CurrentArmor ? . Type ?? ItemType . None ;
908907
909908 if ( displayedArmor is not ItemType . None )
0 commit comments