更新天气插件
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user