Fix exception when calculating for december (#60)
Co-authored-by: RioMcBoo <artem.jkl@gmail.com>
This commit is contained in:
@@ -2097,8 +2097,7 @@ namespace Game
|
||||
if (time.Day == 1)
|
||||
return t;
|
||||
|
||||
var newDate = new DateTime(time.Year, time.Month + 1, 1, 0, 0, 0, time.Kind);
|
||||
return Time.DateTimeToUnixTime(newDate);
|
||||
return Time.DateTimeToUnixTime(time.AddMonths(1));
|
||||
}
|
||||
|
||||
public void ResetMonthlyQuests()
|
||||
|
||||
Reference in New Issue
Block a user