public static void patch() { HarmonyHelper.patchAll(true); LanguageHelper.init(); DayNightSpeedControl.init(); }
static void Prefix(WorldForces.Current current) { if (double.IsPositiveInfinity(current.endTime)) { return; } double lifeTime = (current.endTime - current.startTime) * DayNightSpeedControl.getSpeedClamped01(); current.endTime = current.startTime + lifeTime; }