//============ HOOKS =============
        #region Hooks

        /**<summary>Called when item defaults are setup.</summary>*/
        public static void OnSetItemDefaults(Item item)
        {
            if (ItemMods.ContainsKey(item.type))
            {
                ItemModification itemMod = ItemMods[item.type];

                itemMod.ModifyItem(item);

                ErrorLogger.Close();
            }
        }