Skip to content

Commit

Permalink
+ Resolve weather caching issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amathieson committed Dec 30, 2023
1 parent bdfad3d commit 4d60f28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions _OmsiHookExamples/Basic_CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static void Main(string[] args)
Console.OutputEncoding = System.Text.Encoding.UTF8;
while (true)
{
weather ??= omsi.Globals.Weather;
playerVehicle ??= omsi.Globals.PlayerVehicle;
var pos = playerVehicle?.Position ?? default;
var rot = playerVehicle?.Rotation ?? default;
Expand Down

0 comments on commit 4d60f28

Please sign in to comment.