Server.Engines.Craft.DefTinkering.RetainsColorFrom C# (CSharp) Method

RetainsColorFrom() public method

public RetainsColorFrom ( CraftItem item, Type type ) : bool
item CraftItem
type System.Type
return bool
		public override bool RetainsColorFrom( CraftItem item, Type type )
		{
			if ( !type.IsSubclassOf( typeof( BaseIngot ) ) )
				return false;

			type = item.ItemType;

			bool contains = false;

			for ( int i = 0; !contains && i < m_TinkerColorables.Length; ++i )
				contains = ( m_TinkerColorables[i] == type );

			return contains;
		}