internal static void Postfix(List <GearItem> gearList, FireStartMaterialType type) { if (type == FireStartMaterialType.FireStarter) { try { gearList.Sort(CompareFireStarters); } catch (System.Exception e) { UnityEngine.Debug.LogException(e); } } }
internal static void Postfix(Panel_FireStart __instance, ref List <GearItem> gearList, FireStartMaterialType type) { switch (type) { case FireStartMaterialType.FireStarter: Implementation.SortFireStarter(ref gearList); break; case FireStartMaterialType.Tinder: Implementation.SortTinder(ref gearList); break; case FireStartMaterialType.FuelSource: Implementation.SortFuel(ref gearList); break; } }