private static bool GetIngredientTechType(TechType techType, out TechType?ingredientTechType) { ingredientTechType = TechType.None; if (techType == TechType.None) { return(true); } ingredientTechType = CraftDataHandler.GetModdedTechData(techType)?.GetIngredient(0)?.techType; return(false); }