Skip to content

Commit

Permalink
Remove SetClockDate.
Browse files Browse the repository at this point in the history
Removed because this (combined with something unknown) causes performance issues, due to a game bug.
  • Loading branch information
TomGrobbe committed Dec 4, 2021
1 parent d3e5897 commit 9b658c8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions vMenu/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,16 +268,6 @@ public MainMenu()
{
Tick += OnTick;
}
try
{
SetClockDate(DateTime.Now.Day, DateTime.Now.Month, DateTime.Now.Year);
}
catch (InvalidTimeZoneException timeEx)
{
Debug.WriteLine($"[vMenu] [Error] Could not set the in-game day, month and year because of an invalid timezone(?).");
Debug.WriteLine($"[vMenu] [Error] InvalidTimeZoneException: {timeEx.Message}");
Debug.WriteLine($"[vMenu] [Error] vMenu will continue to work normally.");
}

// Clear all previous pause menu info/brief messages on resource start.
ClearBrief();
Expand Down

0 comments on commit 9b658c8

Please sign in to comment.