更新天气插件

This commit is contained in:
2025-12-24 00:09:42 +08:00
parent e902fb031a
commit 1ead9e6cc8
156 changed files with 60774 additions and 104069 deletions

View File

@@ -374,7 +374,11 @@ namespace Enviro
/// <returns>The date in hour format</returns>
public double GetDateInHours()
{
double dateInHours = Settings.timeOfDay + (days * 24f) + ((years * 365) * 24f);
double dateInHours = 0.0f;
if(Settings.calenderType == EnviroTime.CalenderType.Custom)
dateInHours = Settings.timeOfDay + (days * 24f) + ((years * (Settings.monthsInYear * Settings.daysInMonth)) * 24f);
else
dateInHours = Settings.timeOfDay + (days * 24f) + ((years * 365) * 24f);
return dateInHours;
}