Add day length compatibility fixup for BeeRewards GS
parent
501f7458db
commit
8f964ee637
@ -0,0 +1,9 @@
|
||||
if ("GetTimeBetweenDates" in CompanyGoal) {
|
||||
CompanyGoal._GetTimeBetweenDates <- CompanyGoal.GetTimeBetweenDates;
|
||||
CompanyGoal.GetTimeBetweenDates <- function(start, end)
|
||||
{
|
||||
return CompanyGoal._GetTimeBetweenDates(start, start + ((end - start) / GSDate.GetDayLengthFactor()));
|
||||
}
|
||||
|
||||
GSLog.Info("Day length compatibility in effect.");
|
||||
}
|
Loading…
Reference in New Issue