private void Awake()
        {
            context = this;

            modEnabled = Config.Bind <bool>("General", "Enabled", true, "Enable this mod");
            //dayStart = Config.Bind<float>("General", "DayStart", 0.25f, "Fraction of the 24 hours when the day begins");
            //nightStart = Config.Bind<float>("General", "NightStart", 0.75f, "Fraction of the 24 hours when the night begins");
            dayRate = Config.Bind <float>("General", "DayRate", 0.5f, "Rate at which the day progresses (0.5 = half speed, etc)");
            //nightRate = Config.Bind<float>("General", "NightRate", 1f, "Rate at which the night progresses (0.5 = half speed, etc)");
            nexusID = Config.Bind <int>("General", "NexusID", 98, "Nexus mod ID for updates");

            if (!modEnabled.Value)
            {
                return;
            }

            /*
             * if(nightStart.Value - dayStart.Value < 0.2)
             * {
             *  Dbgl("Daytime too short, adjusting");
             *  float diff = 0.2f - (nightStart.Value - dayStart.Value); // 0.99 0.89 = 0.1
             *  float nightCap = Mathf.Min(0, 1 - (nightStart.Value + diff / 2f)); // 1 - 0.99 - 0.05 = -0.04
             *  float dayCap = Mathf.Min(0, dayStart.Value - diff / 2f); // 0.89 - 0.05 = 0 clamped
             *  nightStart.Value = Mathf.Min(1, nightStart.Value + diff / 2f - dayCap); // 1 clamped
             *  dayStart.Value = Mathf.Max(0, dayStart.Value - diff / 2f + nightCap); // 0.89 - 0.5 +(-0.04) = 0.8
             *  Config.Save();
             * }
             */

            Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), null);
        }
        private void Awake()
        {
            context = this;

            modEnabled      = Config.Bind <bool>("General", "Enabled", true, "Enable this mod");
            untieSmeltTimes = Config.Bind <bool>("General", "UntieCraftTimes", true, "Make smelting times independent from time scale changes");
            dayStart        = Config.Bind <float>("General", "DayStart", 0.25f, "Fraction of the 24 hours when the day begins");
            nightStart      = Config.Bind <float>("General", "NightStart", 0.75f, "Fraction of the 24 hours when the night begins");
            dayRate         = Config.Bind <float>("General", "DayRate", 0.5f, "Rate at which the day progresses (0.5 = half speed, etc)");
            nightRate       = Config.Bind <float>("General", "NightRate", 1f, "Rate at which the night progresses (0.5 = half speed, etc)");
            nexusID         = Config.Bind <int>("General", "NexusID", 98, "Nexus mod ID for updates");

            if (!modEnabled.Value)
            {
                return;
            }


            Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), null);
        }